Return to Snippet

Revision: 13957
at May 14, 2009 10:01 by sidneydekoning


Initial Code
var triangleHeight:uint = 100;
var triangleShape:Shape = new Shape();

triangleShape.graphics.lineStyle(1,0xff00ff00)
triangleShape.graphics.beginFill(0xff0000);
triangleShape.graphics.moveTo(triangleHeight/2, 5);
triangleShape.graphics.lineTo(triangleHeight, triangleHeight+5);
triangleShape.graphics.lineTo(0, triangleHeight+5);
triangleShape.graphics.lineTo(triangleHeight/2, 5);
addChild(triangleShape);

Initial URL

                                

Initial Description

                                

Initial Title
Draw a Triangle

Initial Tags

                                

Initial Language
ActionScript 3