How to draw a triangle in a math graph?
问题 How to draw a triangle in a math graph which displays X and Y axis. 回答1: To draw shapes using ActionScript2, you can use the moveTo() and lineTo() methods of the MovieClip object. You can specify line colour and thickness with lineStyle() , or make a solid shape using beginFill() and endFill() . So to draw your graph and triangle you could do the following steps: Make a movieClip named "graph" Define how big your graph should be (using the flash.geom.Rectangle object) Draw a grey background