<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://wbex.ru/index.php?action=history&amp;feed=atom&amp;title=Flash_%2F_Flex_%2F_ActionScript%2FAnimation%2FBounce</id>
		<title>Flash / Flex / ActionScript/Animation/Bounce - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://wbex.ru/index.php?action=history&amp;feed=atom&amp;title=Flash_%2F_Flex_%2F_ActionScript%2FAnimation%2FBounce"/>
		<link rel="alternate" type="text/html" href="http://wbex.ru/index.php?title=Flash_/_Flex_/_ActionScript/Animation/Bounce&amp;action=history"/>
		<updated>2026-04-04T18:51:34Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://wbex.ru/index.php?title=Flash_/_Flex_/_ActionScript/Animation/Bounce&amp;diff=4182&amp;oldid=prev</id>
		<title> в 09:19, 26 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://wbex.ru/index.php?title=Flash_/_Flex_/_ActionScript/Animation/Bounce&amp;diff=4182&amp;oldid=prev"/>
				<updated>2010-05-26T09:19:12Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 09:19, 26 мая 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
			</entry>

	<entry>
		<id>http://wbex.ru/index.php?title=Flash_/_Flex_/_ActionScript/Animation/Bounce&amp;diff=4183&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://wbex.ru/index.php?title=Flash_/_Flex_/_ActionScript/Animation/Bounce&amp;diff=4183&amp;oldid=prev"/>
				<updated>2010-05-26T08:14:31Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Creating a Bouncing Ball==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
package&lt;br /&gt;
{&lt;br /&gt;
import flash.display.Sprite;&lt;br /&gt;
import flash.events.Event;&lt;br /&gt;
public class Main extends Sprite&lt;br /&gt;
{&lt;br /&gt;
    private var ballOne:Sprite;&lt;br /&gt;
    private var ballTwo:Sprite;&lt;br /&gt;
    private var direction:int = 1;&lt;br /&gt;
    public function Main()&lt;br /&gt;
    {&lt;br /&gt;
        ballOne = new Sprite();&lt;br /&gt;
        ballOne.graphics.beginFill(0xff0000, 1);&lt;br /&gt;
        ballOne.graphics.drawCircle(0, 0, 30);&lt;br /&gt;
        ballOne.graphics.endFill();&lt;br /&gt;
        ballTwo = new Sprite();&lt;br /&gt;
        ballTwo.graphics.beginFill(0x0000ff, 1);&lt;br /&gt;
        ballTwo.graphics.drawCircle(0, 0, 30);&lt;br /&gt;
        ballTwo.graphics.endFill();&lt;br /&gt;
        addChild(ballOne);&lt;br /&gt;
        addChild(ballTwo);&lt;br /&gt;
        ballTwo.x = 200;&lt;br /&gt;
        ballOne.x = 300;&lt;br /&gt;
        ballTwo.y = 5;&lt;br /&gt;
        ballOne.y = 5;&lt;br /&gt;
        ballTwo.addEventListener(Event.ENTER_FRAME, bounce);&lt;br /&gt;
        ballOne.addEventListener(Event.ENTER_FRAME, bounce);&lt;br /&gt;
    }&lt;br /&gt;
    private function bounce(event:Event):void&lt;br /&gt;
    {&lt;br /&gt;
        var target:Sprite = event.target as Sprite;&lt;br /&gt;
        try&lt;br /&gt;
        {&lt;br /&gt;
            if (target.y == 199)&lt;br /&gt;
            {&lt;br /&gt;
                direction = -1;&lt;br /&gt;
            }&lt;br /&gt;
            if (target.y == 1)&lt;br /&gt;
            {&lt;br /&gt;
                direction = 1;&lt;br /&gt;
            }&lt;br /&gt;
            if (target.y &amp;lt; 200 &amp;amp;&amp;amp; target.y &amp;gt; 0)&lt;br /&gt;
            {&lt;br /&gt;
                trace(target.y + &amp;quot; : &amp;quot; + direction);&lt;br /&gt;
                target.y += direction;&lt;br /&gt;
            }&lt;br /&gt;
        } catch(err:Error) {&lt;br /&gt;
            trace(&amp;quot;ooops....&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
        &amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>