flash on 2009-10-2

by telcanty
♥0 | Line 23 | Modified 2009-10-02 08:04:44 | MIT License
play

ActionScript3 source code

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






package {
    
    import flash.display.Sprite;
    
    public class FlashTest extends Sprite {
        
        private var _ball:Sprite;
        
        public function FlashTest() {
            _ball = new Sprite();
            _ball.graphics.beginFill(0xFF0000);
            _ball.graphics.drawCircle(0,0,20);
            _ball.graphics.endFill();
            _ball.x = stage.stageWidth/4;
            _ball.y = stage.stageHeight/4;
            _ball.scaleX = _ball.scaleY = 2;
            
            var blue_ball:Sprite = new Sprite();
            blue_ball.graphics.beginFill(0x0000FF);
            blue_ball.graphics.drawCircle(0,0,20);
            blue_ball.graphics.endFill();
            blue_ball.x = stage.stageWidth/4;
            blue_ball.y = stage.stageHeight/4;
            
            
            addChild(_ball);
            addChild(blue_ball);
            //_ball.addChild(blue_ball);
            //_ball.removeChild(blue_ball);
            
        }
        
    }
    
}