PDA

View Full Version : Animating curveTo


mhughes
09-06-2005, 07:51 PM
Hey, i'm trying to make a shooting star type effect, and i figured i could do it with the drawing api, but i can't figure out how to animate the drawing of a curveTo line. (as opposed to just having it appear on screen). Is this possible?

suisei
09-07-2005, 09:01 AM
im a little unsure what u are taliking about.

could u give an example or an illustration of what u want

jsebrech
09-07-2005, 09:18 AM
Maybe you could mask it.

Draw it in a separate movieclip, mask it with a "mask" movieclip using setMask.
Then, in the mask, draw the bounding rectangle of the part of the curve you wish to show frame per frame.

Your alternative is to figure out the math to draw every chunk of curve, which is a little more complicated.

senocular
09-07-2005, 10:10 AM
see:
http://www.senocular.com/index.php?id=1.274