Draw four shapes
package{
import flash.display.*;
public class Main extends Sprite{
public function Main(){
var linesA:Shape = new Shape();
var linesB:Shape = new Shape();
var linesC:Shape = new Shape();
var linesD:Shape = new Shape();
addChild(linesA);
addChild(linesB);
addChild(linesC);
addChild(linesD);
linesA.x = 100;
linesA.y = 100;
linesA.graphics.lineStyle(20, 0, 100, false, "none", "none", "round");
linesA.graphics.lineTo(100, 0);
linesA.graphics.lineTo(0, 50);
linesB.x = 250;
linesB.y = 100;
linesB.graphics.lineStyle(20, 0, 100, false, "none", "none", "none");
linesB.graphics.lineTo(100, 0);
linesB.graphics.lineTo(0, 50);
linesC.x = 100;
linesC.y = 200;
linesC.graphics.lineStyle(20, 0, 100, false, "none", "none", "miter");
linesC.graphics.lineTo(100, 0);
linesC.graphics.lineTo(0, 50);
linesD.x = 250;
linesD.y = 200;
linesD.graphics.lineStyle(20, 0, 100, false, "none", "none", "miter", 10);
linesD.graphics.lineTo(100, 0);
linesD.graphics.lineTo(0, 50);
}
}
}
Related examples in the same category