[AS3] Color Transform across frames
Hoping someone can offer some advice for this problem! I'm making a dress-up game and have hit a brick wall with some code. I'm no Flash expert and this is my first venture into AS3, so first off apologies for that =}
I am using colorTransform to change the colour of a mask in a movieclip, controlled with buttons to change the frame to a new object and also buttons to control the colour selected.
The problem is that if I change a movieclips frame, it forgets what colour was chosen and defaults back to the original colour of the mask. I've tried spreading the mask over all the frames, and short of having a mask object on every frame I'm not sure how to do it.
Is there a way to stop this happening? So that if I move to a new frame and select say blue, frame 2 (and all the other frames) will remember the colour?
I've attached a zip with a .swf and .fla example of the code I'm using to change frames and colours. Thank you kindly in advance for any help you can offer!
|