600) // checking boundaries direction*=-1; // direction = -direction; } /** * end() function is called when the timer is done. It changes * the source of our displayed image. * **/ protected function end(event:TimerEvent):void { myImage.source="http://www.cs.cmu.edu/~anind/dey.big.jpg"; } ]]>