Drawing Rounded Rectangles
package{
import flash.display.*;
public class Main extends Sprite{
public function Main(){
var shape:Shape = new Shape();
addChild(shape);
shape.graphics.beginFill(0x000000, 1);
shape.graphics.drawRoundRect(0, 0, 100, 100, 10, 20);
shape.graphics.endFill();
}
}
}
Related examples in the same category