|
|
Yet another question in the Flashpad, this time how to emulate the buttons on Matinee -- specifically, how they fade on rollout. In fact, this is an 'enhanced' version which doesn't skip back to the beginning of the rotation when you roll out. It needs some tweaking to prevent the button re-activating midway through its fade-out sequence, but I don't have time to put that in right now.
Here's the .fla file in .zip form.
Basically, it's that old favourite, the 'nested movie clip'. The rotation movie (Chicken_Animation) is placed in another movie (with the instance name Chicken_Animation) where it's faded in (Fade_animation). This second movie clip is then placed in the scene (with the instance name Fade_Animation).
Button is just that, with a fading in movie clip (Chicken_fadein) in the Up state, an empty keyframe in the Over state and a filled box in the Hit state.
Now we place Button over the top of Fade_Animation and give it some Tell Target actions. The On (Roll Over) action tells /Fade_Animation/Chicken_Animation (remember, nesting movie clips works like subdirectories on a hard disk) to start playing. The On (Roll Out) action tells /Fade_Animation to start, thus making Chicken_Animation fade out, but while it's still rotating. An action in the last frame of Fade_Animation uses Tell Target to send Chicken_Animation to its first frame and stop (thus resetting it) when the fade has completed.
Look at the .fla file, it's not too difficult. Make sure you look closely at the frame actions to be sure you know what's going on.
Good luck!
All files and text copyright ©Stickman 1998 - 2003. For copyright and terms of use information, please read this page.