test

by plus-tic
♥0 | Line 18 | Modified 2011-05-25 00:13:49 | MIT License
play

ActionScript3 source code

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

package {
    import flash.events.Event;
    import flash.display.Sprite;
    public class FlashTest extends Sprite {
        public function FlashTest() {
            var maru:Sprite = new Sprite();
            maru.graphics.beginFill(0xFF0000);
            maru.graphics.drawCircle(stage.stageWidth/2,stage.stageHeight/2,20);
            maru.graphics.endFill();
            addChild(maru);
            this.addEventListener(Event.ENTER_FRAME,loop);
        }
        public function loop(e:Event):void{
            var num:int = 10;
            this.x += num;
        }

    }
}