How do I animate lines being drawn? It’s probably so simple I’m gonna kick myself for it, but how is it done? :cyclops:
You could use a mask to uncover what you want drawn
or
you could use a shape tween to extend a line or shape
or
you could use the drawing API
What kind of line?
Say I wanted to show the process of scribbling with the pencil tool… shape tweening?
Like this?
http://www.kirupa.com/developer/actionscript/drawingboard.htm
If not, let me know. I just learned how to really use API and I like it!!
it depends on how complex you want to get. There are a few different ways of going about it.
Heres a script I did that lets you draw drawing API lines dynamically.
http://proto.layer51.com/d.aspx?f=952
see the heart drawing example near the bottom.
Close, but could I make it a movie instead of drawing board? Also, could straight lines be used? :bandit:
If you just want a line drawn with animation, maybe the API is a bit of an overkill for what you’re doing. If not, then you would have to code it using location, distance, timing, etc. You may as well just draw a line, put a mask on top of it, then shape tween the mask away. That’s how I do it anyhow.
Sen - I saw that tut before and really liked it - good job!! I still have yet to comprehend the whole curveTo thing.