flash on 2011-3-9

by sargerasssape
♥0 | Line 24 | Modified 2011-03-09 05:42:58 | MIT License
play

ActionScript3 source code

/**
 * Copyright sargerasssape ( http://wonderfl.net/user/sargerasssape )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/y0Qk
 */

package {
    import flash.events.Event;
    import flash.display.AVM1Movie;
    import flash.display.Sprite;
    public class FlashTest extends Sprite {
        public var emo:Sprite;
        public function FlashTest() {
            // write as3 code here..
            this.init();
        }
        public function init():void
        {
            this.emo = new Sprite();
            this.emo.graphics.beginFill(0x003300);
            this.emo.graphics.drawCircle(50,50,20);
            this.addChild(this.emo);
            this.addEventListener(Event.ENTER_FRAME,this.onEnterFrame);
        }
        public function onEnterFrame(evt:Event):void
        {
            this.emo.x +=5;
            this.emo.y +=3;
        }


    }
}