Draw three shapes
package{
import flash.display.*;
public class Main extends Sprite{
public function Main(){
var lineA:Shape = new Shape();
var lineB:Shape = new Shape();
var lineC:Shape = new Shape();
addChild(lineA);
addChild(lineB);
addChild(lineC);
lineA.x = 100;
lineA.y = 100;
lineA.graphics.lineStyle(20, 0, 1, false, "none", "round");
lineA.graphics.lineTo(100, 0);
lineB.x = 100;
lineB.y = 150;
lineB.graphics.lineStyle(20, 0, 1, false, "none", "square");
lineB.graphics.lineTo(100, 0);
lineC.x = 100;
lineC.y = 200;
lineC.graphics.lineStyle(20, 0, 1, false, "none", "none");
lineC.graphics.lineTo(100, 0);
}
}
}
Related examples in the same category