Applying Animation Techniques to Other Properties : Rotation : Animation Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Animation » Rotation »

 

Applying Animation Techniques to Other Properties


 
package {
    import flash.display.Sprite;
    import flash.events.Event;
    
    public class Main extends Sprite {
        private var _sprite:Sprite = new Sprite(  );
        private var _vr:Number = 4;
        
        public function Main(  ) {
            _sprite.graphics.beginFill(0xffffff100);
            _sprite.graphics.drawEllipse(-50, -2010040);
            _sprite.x = 10;
            _sprite.y = 10;
            addChild(_sprite);
            addEventListener(Event.ENTER_FRAME, onEnterFrame);
        }
        
        public function onEnterFrame(event:Event):void {
             _sprite.rotation += _vr;
        }
    }    
}

        



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


Flash / Flex / ActionScript examples

 Navioo Animation
» Rotation