Animating by Frames : Animation « Animation « Flash / Flex / ActionScript






Animating by Frames

 
package
{
    import flash.display.*;
    import flash.events.Event;

    public class Main extends Sprite
    {
        public function FrameAnimation()
        {
            addEventListener(Event.ENTER_FRAME, onEnterFrame);
        }

        protected function onEnterFrame(event:Event):void
        {
            trace("animating");
        }
    }
}

        








Related examples in the same category

1.Programmatic Animation
2.A timer function-based animation
3.Animation and Speed
4.Animating with Pure ActionScript
5.Moving an Object