Draw lines
package{
import flash.display.*;
public class Main extends Sprite{
public function Main(){
var rectangleA:Sprite = new Sprite();
rectangleA.graphics.lineStyle(1, 0x000000, 100, false);
rectangleA.graphics.lineTo(100, 0.4);
rectangleA.graphics.lineTo(100.4, 50);
rectangleA.graphics.lineTo(0, 50.4);
rectangleA.graphics.lineTo(0.4, 0)
addChild(rectangleA);
}
}
}
Related examples in the same category