Creates the triangle
package {
import flash.display.GradientType;
import flash.display.Sprite;
import flash.geom.Matrix;
public class Main extends Sprite {
public function Main() {
graphics.lineStyle(1);
graphics.beginFill(0x00FF00, 1);
graphics.moveTo(25, 0);
graphics.lineTo(50, 25);
graphics.lineTo(0, 25);
graphics.lineTo(25, 0);
graphics.endFill( );
}
}
}
Related examples in the same category