# Developing complex dropdown menu

**URL:** <https://forum.kirupa.com/t/developing-complex-dropdown-menu/178809>\
**Category:** flash\
**Created:** [February 14, 2006, 2:02pm UTC](https://forum.kirupa.com/t/developing-complex-dropdown-menu/178809 "2006-02-14T14:02:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jak675](https://avatars.discourse-cdn.com/v4/letter/j/6a8cbe/32.png) [@jak675](https://forum.kirupa.com/u/jak675)\
**Post date:** [February 14, 2006, 2:02pm UTC](https://forum.kirupa.com/t/developing-complex-dropdown-menu/178809/1 "2006-02-14T14:02:05Z")

</div>

Hi,  
I am working on a dropdown menu but am a little stuck.

I want to use the example for the complex rollover but am unsure as to where in the AS I need to add/modify so that the menu stays displayed until another menu option is chosen.

Here is the code:

```auto
 
//all this code is inside the complex button so you can stick as many as you want 
//on the stage and all will work.. they all will have this code in it..
stop(); // stop the movie clip from playing (stop button from growing, we want that when the mouse rolls over only
            
this.onEnterFrame = function(){
 if(rewind == true){ //if rewind switch is set to true play backwards
  prevFrame(); // play backwards
 }
}
this.onRollOver = function(){
 rewind = false; //set variable (or switch) that decides wether ot not to play backwards...
 play(); // play this movie clip.. (grow the button(tween));
 }
this.onRollOut = function(){
 rewind = true; //set or rewind switch to true so it will play backwards...
 }

```

The example I am using is [http://www.kirupa.com/developer/mx2004/button\_effect.htm](http://www.kirupa.com/developer/mx2004/button_effect.htm)

Any help is greatly appreciated.

Thanks,  
Joe :+)
