PDA

View Full Version : How to dynamically draw a swash.


Kyle88
01-01-2011, 09:11 PM
I need to take a vector image I was given and add it to an animation whereby it appears as if the swash was drawn from left to right under a word.

Best I can do so far is make it appear under the word, but this isn't what has been asked for.

Any ideas how this effect could be accomplished?

Here is a URL to a demo of what I've created so far:

safelist.eworldinc.com

Rhuno
01-03-2011, 02:45 PM
If I understand what you're trying to do correctly, you could put a mask over it and then just animate the mask from left to right.

Kyle88
01-03-2011, 07:45 PM
If I understand what you're trying to do correctly, you could put a mask over it and then just animate the mask from left to right.

I've never used a mask. Any chance you could walk me through it?

Rhuno
01-03-2011, 08:48 PM
Sure, I've attached a simple example file for you to look at.

Just create a movieclip, draw your slash, and on a layer above the slash, create another movieclip and set it as the mask (right click the layer on the timeline and select Mask).

Anything under the mask will be drawn, anything outside of it will not. So move the mask to the left of the slash and create a timeline animation to move the mask over the slash. You'll probably want to put a stop(); at the end of the animation so it doesn't loop.

Take a look at the file and it should make sense.

Kyle88
01-04-2011, 03:56 AM
Thank you. Mystery solved!