PDA

View Full Version : Animation



vxd
February 11th, 2009, 08:50 AM
I have an animation that has mask in it.
I'm using actionscript to set the mask.
The problem I am having is all the mask after frame 1 doesn't work. When I trace the movie clip name it says null.
I know it's because flash can't access movie clip's name because hasn't loaded yet.

So the question is how do I do it?


I have the AS in a .as. I have tried putting the as on the first frame, same thing.

The only way I know to make it work is to add the AS on each of the key frame which will be a pain to do.

ayumilove
February 11th, 2009, 11:31 AM
try putting all the necessary stuff inside 1 frame.
and use your actionscript to access them.

if you use gotoAndStop or gotoAndPlay another frame, the 2nd frame does not contain what the first frame has, and from there , you are forced to redefine everything.

so one of the solution is to have it create a movieclip dynamically on any frame, and work your way through