Groups | Blog | Home
all groups > flash (macromedia) > august 2006 >

flash (macromedia) : RollOut without stopping the RollOver-MC


Christian Voigt
8/9/2006 8:20:31 PM
Hi there,

I've made a button which plays a little mc at rollover. The problem is that
this mc stopps running on rollout.

I need the rollover-mc playing till it's end, even if the rollout happens
before. Does somebody have any idea???

Thanx, Terry
Nickels55
8/9/2006 8:56:25 PM
A common solution is to make an invisible button, no rollover or wild effects,
just a transparent square that is a button. You then put that on top of a
movieclip stopped on the first frame with the the button image. The rest of the
moviclip is the rollover animation. At the end oof the animation have the
movieclip go back to frame 1 and stop: gotoAndStop(1);

Then you attach this type of code to the invisible button:

on(rollover){
movieclipname.gotoAndPlay(2);
}

This way the invisible button is controlling a movieclip below it which
appears to be the button itself.

Ya got me?
Christian Voigt
8/9/2006 9:47:12 PM
It works!!!!

Great, this is the solution I was looking for.

AddThis Social Bookmark Button