Use the graphics
package{
import flash.display.Sprite;
public class Main extends Sprite{
public function Main(){
var rectangleB:Sprite = new Sprite();
rectangleB.graphics.lineStyle(1, 0x000000, 100, true);
rectangleB.graphics.lineTo(100, 0.4);
rectangleB.graphics.lineTo(100.4, 50);
rectangleB.graphics.lineTo(0, 50.4);
rectangleB.graphics.lineTo(0.4, 0);
rectangleB.x = 200;
addChild(rectangleB);
}
}
}
Related examples in the same category