PDA

View Full Version : mouse over


elektra
09-30-2003, 09:00 AM
hi
does anybody know how to do this: I have a button with an animated mouse over effect (a MC placed in the "over" frame of the button) - but I want it to stop so that this effect doesnt repeat it self when the button is clicked? Any suggestions?
thanks

dzy2566
09-30-2003, 10:45 AM
Depending on how strenuous your program will be on your processor, you could always cheat at set the mc._visible = false, when you press the button.

Otherwise, I wouldn't put the movie clip in the over state. I would use something more like:

myButton.onRelease = function(){
canPlay=false;
//button code
}
myButton.onRollOver = function(){
if(canPlay){
myMc.gotoAndPlay(1);
}
}

Xenozip
09-30-2003, 06:57 PM
Or you could just edit the movie clip (that's inside the button) and put a stop(); action in the last frame of the movie clip.