# Drop menu sticking

**URL:** <https://forum.kirupa.com/t/drop-menu-sticking/263824>\
**Category:** Uncategorized\
**Created:** [June 19, 2008, 3:05pm UTC](https://forum.kirupa.com/t/drop-menu-sticking/263824 "2008-06-19T15:05:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sheena](https://avatars.discourse-cdn.com/v4/letter/s/8e8cbc/32.png) [@sheena](https://forum.kirupa.com/u/sheena)\
**Post date:** [June 19, 2008, 3:05pm UTC](https://forum.kirupa.com/t/drop-menu-sticking/263824/1 "2008-06-19T15:05:06Z")

</div>

I have a horizontal main menu with four drop down menus - the menus drop down on rollOver and pop back up on rollOut but not always -

If you run the mouse quickly across the main nav the drop down menus stick in the drop down position which is a bit rubbish -

Does anyone know of a full-proof way to make the drop menus pop back up when not in use?

Many thanks

---

<div class="post-metadata">

**Author:** ![Titleist](https://avatars.discourse-cdn.com/v4/letter/t/ba9def/32.png) [@Titleist](https://forum.kirupa.com/u/Titleist)\
**Post date:** [June 19, 2008, 3:31pm UTC](https://forum.kirupa.com/t/drop-menu-sticking/263824/2 "2008-06-19T15:31:56Z")

</div>

Could you post the code you are using for the drop downs?

---

<div class="post-metadata">

**Author:** ![sheena](https://avatars.discourse-cdn.com/v4/letter/s/8e8cbc/32.png) [@sheena](https://forum.kirupa.com/u/sheena)\
**Post date:** [June 19, 2008, 4:58pm UTC](https://forum.kirupa.com/t/drop-menu-sticking/263824/3 "2008-06-19T16:58:24Z")

</div>

Hi,

When I was looking at the code again to reply to your message I noticed an error - now all the drop menus exit the stage ok - but for one…

The problem now is that the last drop menu revealed when the main nav button is rolled over stays on the stage unless a subnav button on the drop menu is pressed.

Any ideas how I can get the drop menu to exit the stage if nothing is pressed on the subnav?

I have tried to put an invisible button around the drop menu panel itself and put an onRollOut action but that clashes with the buttons on the sub menu.

Here is a sample of the code that I have on one of the main menu buttons that control the drop down menus:

It is basic, i’m not that good at as - many thanks for your help

//

on (rollOver) {  
// drop menu  
new mx.transitions.Tween(drop04, “\_alpha”, mx.transitions.easing.Strong.easeOut, 0, 100, 1, true); // candidates  
new mx.transitions.Tween(drop04, “\_y”, mx.transitions.easing.Strong.easeOut, 0, 70, 1, true);  
// remove any other drop menu that may be showing  
\_root.drop02.\_visible = false;  
\_root.drop03.\_visible = false;  
\_root.drop04.\_visible = true; // candidates  
\_root.drop05.\_visible = false;  
\_root.drop06.\_visible = false;  
}  
on (rollOut, releaseOutside) {  
new mx.transitions.Tween (hilite, “\_alpha”, mx.transitions.easing.Strong.easeOut, 10, 0, 1, true);  
// I can’t use this button to hide the drop menu because the drop menu is a separate mc, if I used the-  
// on rollOut action to hide the drop menu it wouldn’t be available for the user.  
}

* * *
