circle

by O_MEG_A
♥0 | Line 22 | Modified 2015-05-12 15:02:17 | MIT License
play

ActionScript3 source code

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

package

{

    import flash.display.Sprite;
 
    [swf(width = 640 , height = 380)]
    
    public class draw_circle extends Sprite

    {

        private var ball:Sprite;

        

        public function draw_circle()

        {

        init();    

        }

        private function init():void{

            ball = new Sprite();

            addChild(ball);

            ball.graphics.beginFill(0xFF0000);

            ball.graphics.drawCircle(0,0,10);

            ball.graphics.endFill();

            ball.x = stage.stageWidth / 2 ;

            ball.y = stage.stageHeight / 2 ;

        }

    }

}