PDA

View Full Version : button animation


Alexy
08-09-2002, 06:57 AM
I'm looking for some help with basic button animation. I have some movie clips that I'd like to run "in" the buttons, that is, once you click on the button, the movie clip plays.

I've seen this done about a million times, and I have no idea how to do it myself. Any comments or resources would be much appreciated.

Thanks

Cremulator
08-09-2002, 07:41 AM
Put you movie clip on the stage where you want it to play and give it an instance name of 'MC_01'.
Make sure you have a stop action in the first frame of this movie clip too.
Then try putting one of these scripts onto your button:
on (release) {
_root.MC_01.play();
}
//or if you want to start playing from a certain frame number:
on (release) {
_root.MC_01.gotoAndPlay(2);
}

Billy T
08-09-2002, 02:47 PM
if your button is inside the mc you can just say

on(release){
play();
}