well… i have a menu that i want to have expand on mouse over and contract on mouse out
i programmed a mc that expands from frames 1->6 and contracts 6-12
then i made actionscript gotoandplay 1 on mouse over and gotoandplay 6 onmouseout (putting stops at frames 1 and 6 of the mc)
it works just fine the first few times
but if you move the mouse around too fast of hover it over some parts of the MC the whole thing goes wack and the menu starts flickering and working backwards
i’m sure it’s a very quick fix, and i would appreciate any help i can get
Well, I can tell you that your problem is that when the movie clip retracts and goes out of your mouses reach it goes back to 6 and it’s a mad loop cause it keeps going to the rollOut (and that’s a bad thing). My cheap code works, but it’s not <i>fool</i>-proof…Anyway, it shouldn’t be too hard to understand.
ugh… is there any better way to organize this alltogether…
i’m actually looking to make menu’s like the events menu on http://www.goldclubseries.ca/
the way you fixed up my file, if you just quickly move your mouse over the menu, and then off, it goes into the ‘contracting stage’ long before it even fully expanded… looks like its having a spasm or something heh
is there any way to make it… i don’t know… contract from however far it has expanded… not fully…
i imagine…
if it takes like 10 frames to expand and 10 to contract…
you would do something like
on mouse out, gotoAndPlay(20-however far into the expanding you were)