Drawing Circles : Graphics : Graphics Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Graphics » Graphics »

 

Drawing Circles


 

package{
    import flash.display.Sprite;
    import flash.display.Shape;
    import flash.display.StageScaleMode;
    import flash.display.StageAlign;
    public class Main extends Sprite
    {
        private var Maib:Shape;

        public function ShapeTest()
        {
            stage.scaleMode = StageScaleMode.NO_SCALE;

            stage.align = StageAlign.TOP_LEFT;
            var shape:Shape = new Shape();
            addChild(shape);
            shape.x = 100;
            shape.y = 100;
            shape.graphics.beginFill(0x0000001);
            shape.graphics.drawCircle(00100);
            shape.graphics.endFill();
        }
    }
}

        



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


Flash / Flex / ActionScript examples

 Navioo Graphics
» Graphics