Blue&Red Balls

by happier_eka
Blue&Red Balls

♥0 | Line 18 | Modified 2009-11-12 22:52:46 | MIT License
play

ActionScript3 source code

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

package {
    import flash.display.*;
    
    [SWF(backgroundColor="#CCCCCC")]
    public class DrawCircle extends Sprite {
        public function DrawCircle() {
            // write as3 code here..
            
            stage.align = StageAlign.TOP_LEFT;
            stage.scaleMode = StageScaleMode.NO_SCALE;
            
            var circleA:Sprite = new Sprite;
            circleA.graphics.beginFill(0x3399FF);
            circleA.graphics.drawCircle(260,200,80);
            addChild(circleA);
            
            var circleB:Sprite = new Sprite;
            circleB.graphics.beginFill(0xFF3333);
            circleB.graphics.drawCircle(340,260,80);
            addChild(circleB);
            
        }
    }
}