View Full Version : drop-down menu

04-19-2002, 02:59 AM
I am using drop down menus in my movie and they are working quite nicely.

The only thing is (and I've seen this with other sites as well, not all, but some), the menus don't necessarily disappear on rollout. I have an invisible button over each menu that collapses it on rollout but there are times when it seems that rollout doesn't work and the menu is left hanging there. There are times when I can get all my menus to hang which looks kind of weird.

Is there a rhyme or reason to this? Is it a function of how fast you move the mouse and how long the menu takes to fully play out? I have seen some movies that consistently close no matter what.

Hmmm, I just thought of something as I was writing, could this be a possible solution? -- Set an action in all the menus that specifically return all other menus to their original (collapsed) state before expanding the current menu?

04-19-2002, 08:18 AM
besides rollOut try adding dragOut, see if that will work.


04-19-2002, 12:22 PM
i was having the same problem on a recent project. what i did was make the menu dissapear after the mouse crossed a certain height and width in pixels.

hope that gives u an idea.:)

04-19-2002, 08:02 PM
I tried adding rollout, dragout, dragover and unfortunately none worked but thanks for the suggestion.

As of right now, when you mouse over the button, the menu expands. Rolling the mouse over the sides and bottom of the menu makes it disappear,...the only weird spot is the top, when you exit the menu from the top (essentially going over & past the button that originally activated the menu), it remains hanging.

I think I understand why this is (has to do with the levels of the buttons)

Anyways, to make a long story short, Fizzik, would you mind sending me the snippet of code that will allow me to control the menu via mouse location?

Much appreciated!

04-20-2002, 02:26 AM
this code is on the mc that my button is in, all my buttons are in separate mc's.

onClipEvent (mouseMove) {
if (this._ymouse < 0){