Great tutorial. I'll give it a shot, but I'm worried that it will not work since I am trying to do this effect to an animation instead of a still image. We'll just have to see.
It's all display objects to flash. You can mask a container full of oodles of things the same way you'd do it to a single image in a container. You will incur a CPU hit if it's too complex obviously though.
Hmmm, so I am getting the following compiler errors...
Scene 1, Layer 'Actions', Frame 1, Line 1 1120: Access of undefined property animationclr_mc.
Scene 1, Layer 'Actions', Frame 1, Line 2 1120: Access of undefined property mask_mc.
Scene 1, Layer 'Actions', Frame 1, Line 4 1120: Access of undefined property animationclr_mc.
Scene 1, Layer 'Actions', Frame 1, Line 4 1120: Access of undefined property mask_mc.
all of my clips are in the library, not sure what the error means.
Now the animation works but Flash is ignoring the gradient in the mask, instead it is showing the hard edge of the rectangle.
As the tutorial no doubt explained the mask needs to be applied by script to get the gradient to work.
Here's the thing a lot of people get snagged on. What you name the clip in the library means absolutely nothing. What animationclr_mc and mask_mc are referring to are instance names.
I will post a picture of an instance name I posted in another thread. This has nothing to do with your project but the arrows will show you where you need to put the instance name so you stop getting those errors.
You need to select the object on the screen, look in the properties panel and fill in the name I'm pointing to in the giant red arrow. In this example it points to the instance name image_mc. You can also see in the library that the name is also image_mc. That means nothing. You need to use an instance name, which is what the huge red arrows are pointing out. Click on your mask, set the instance name to mask_mc and click on the animation and set its instance name (not library name) to animationcle_mc.
Instance name and library names are 2 completely different things. Actionscript ONLY works with instance names, not library names.
Wow, how did I forget the instance name? <facepalm>
Thanks a bunch, works perfectly now.
Glad you got it working