Tuesday, November 24, 2009
Polygon
Flash's runtime drawing functions like "lineTo" and "curveTo" are very powerful. You can draw complex vector shapes with pure ActionScript at runtime! I created a sample vector polygon shape from my custom "Polygon" class.
Hit the Numeric Component to increment or decrement the number of sides of the polygon, and the file will automatically redraw the shape with the sides you specified. You will notice that as you increase the number of sides, the more circular the shape becomes.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment