hELP,
Im trying to make an animation pop up, like spinning text or something a little bit intersting upon rollover of a button. So, you roll over the button and a cool lil animation pops up
Any help would be appreciated
Thanks
t5
Yes, the latter, Im trying to get an animation to play when i do a mouse over,do I need to make the animation from a tween to a movie clip first? Im having a hard time getting tweens (when saved as movie clips) to play.
thanks,
t5
Wouldn't know why your having a hard time getting movie clips to play. Oh well, this is how you target a movie clip to play from a button:
1) Once you have your movie clip, drag a copy of it onto the stage, make sure you have a stop(); action on the first frame of your movie clip and the frame where you want it to stop (tip: if you want it to loop continuously then put a goto action on the last frame and send it to frame 2 so you miss the stop action on the first frame). Select it and give it a name (Flash 5; symbol instance, Flash MX; properties)
2) Now drag your button to the stage, right click and choose actions. Enter this code into the actions window for your button:
on (rollOver) {
yourclip.gotoAndPlay (2);
}
on (rollOut) {
yourclip.gotoAndStop (1);
}
Now go to control/test movie (ctrl/enter) to test it.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.