Since I don't have any info yet, I'll just post these neat Flash files.
dashTo.as
The
method mc.dashTo is used
to draw dashed (and dotted) lines. This was made to extend the
lineTo function because the built-in method doesn't have the
custom line types that the line tool has in Macromedia Flash
MX.
drawArc.as
The method mc.drawArc
is used to draw regular and elliptical arc segments. This
method replaces the original method released to the Macromedia
Flash MX beta group titled arcTo. This method contains
several optimizations based on input from the following people:
Robert Penner, Eric Mueller, and Michael Hurwicz.
drawBurst.as
The method mc.drawBurst
is used to draw bursts (rounded star shaped ovals often seen
in advertising). This method
also makes some fun flower shapes if you play with the input
numbers.
drawGear.as
The method mc.drawGear
is used to draw gears. You know, cogs with teeth and a hole
in the middle where the axle goes? Okay, okay...so nobody
needs a method to draw a gear. But it was an easy adaptation of the polygon method.
drawOval.as
The method mc.drawOval
is used to create circles and ovals. Hopefully this one is
pretty straight forward. This method, like most of the others,
is not as optimized as it could be. This was to keep the code as accessible as possible for those either
new to ActionScript or to the math involved in plotting points on a curve.
drawPoly.as
The method mc.drawPoly
is used to create regular polygons. This allows you to draw
the polygons either clockwise or counter-clockwise (based
on the 'sides' argument) so that you can use it to knock holes
in dynamically created masks.
drawRect.as
The method mc.drawRect
is used to draw rectangles and rounded rectangles. Regular
rectangles are easy enough to just rebuild in any file as
needed, but the rounded rectangle is required more frequently, hence the method.
The rounding is very much like that of the
rectangle tool in Macromedia Flash MX. If the rectangle is
smaller in either dimension than the rounding would permit,
the rounded corners scale down to fit.
drawStar.as
The method mc.drawStar
is used to draw star shaped polygons. Like mc.drawPoly,
it can draw stars in either direction—which is helpful
for creating knockouts.
drawWedge.as
The method mc.drawWedge
is used to draw pie shaped wedges. Very useful for creating
charts. Again, special thanks is due to: Robert Penner, Eric
Mueller, and Michael Hurwicz for their contributions.
I hope
you enjoy these methods as much as I enjoyed putting them here.