View Full Version : Another button question
Um Design
11-03-2005, 10:40 PM
I am trying to make a button, when you rollOver it, animation start to play.
I try to insert animated movieClip into button, but in Flash 8 you can't do that.
I have try with ActionScript to call the animation to play when mouse is over, but also nothing.
Can somebody give me code or where can I found some button, when you go over it with mouse, that animation start to play.
Thanks
Um Design
11-04-2005, 06:54 PM
I have made a button with animation (when you go over with mouse that animation start to play), I have use ActionScript on button, but the animation doesn't play when I go over with mouse.
Can you look at my sample and tell me where is error? :(
Sample is here: http://www.um-design.com/samples/Untitled-1.fla
coolioman
11-04-2005, 08:34 PM
try this:
put your main movieclip on the stage, and give it the instance name mymc.
now add this code to your button:
on(rollOver){
_root.mymc.play();
}
on(rollOut){
_root.mymc.stop();
}
hope that helps.
Um Design
11-04-2005, 09:05 PM
sorry, I didn't understand it quite good. Can you maybe explain it a little bit more?
In main stage (in first frame) I have insert button, where do I have to insert movie clip?
coolioman
11-04-2005, 10:38 PM
anywhere, i guess....
Um Design
11-04-2005, 11:15 PM
Thanks, I did it other way, but works. I forgat to insert movie clip on main stage... :o ;)
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.