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(0x000000, 1);
shape.graphics.drawCircle(0, 0, 100);
shape.graphics.endFill();
}
}
}
Related examples in the same category