[thelist] Flash HELP!

Kasimir K evolt at kasimir-k.fi
Sat Oct 29 05:07:54 CDT 2005


Donald Pasewark scribeva in 2005-10-29 00:57:
> My problem is with the menus I've set up.
...

> respectively. I've added invisible buttons around each menu with the 
> actionscript
> 
> on (rollOver) {
> 	gotoAndStop("closed");
> }
>  
> This would work fine except my menus are butting up against each 
> other and when I roll over them a certain way the menus remain open.

And that certain way tells, that menu items to the right are above the 
items to the left. So the invisible button for "advertising design" is 
cover by the visible button "product design".

I used to do my flash menus with one function which closes all but the 
one that has been rolled over. First I'd put all menu clips to an array, 
and then something along the lines of this:

function menuRollOver(menuName) {
   for (i = 0; i < menuArray.length; i++) {
     if (menuArray[i].name == menuName) {
       menuArray[i].gotoAndStop('open');
     } else {
       menuArray[i].gotoAndStop('close');
     }
   }
}

.k



More information about the thelist mailing list