# AS3 Drop Down Button Menu Hell

**URL:** https://forum.kirupa.com/t/as3-drop-down-button-menu-hell/258932
**Category:** flash
**Created:** [April 29, 2008, 5:25pm UTC](https://forum.kirupa.com/t/as3-drop-down-button-menu-hell/258932 "2008-04-29T17:25:12Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Sneu](https://avatars.discourse-cdn.com/v4/letter/s/c2a13f/32.png) [@Sneu](https://forum.kirupa.com/u/Sneu)
#### Post date: [April 29, 2008, 5:25pm UTC](https://forum.kirupa.com/t/as3-drop-down-button-menu-hell/258932/1 "2008-04-29T17:25:12Z")

</div>

Hello,  
I have been trying like heck to get a drop down menu button to work right in AS3. Something so simple in AS2 has now become my nightmare. I’ve used addChild, I’ve used a movie clip as a rollover button, but the problem is that when I get the buttons to NOT activate the rollOut they are unwilling to have their own functions assigned and instead the event listener is triggering the click event for the top button.

```auto
video_bttn.addEventListener(MouseEvent.ROLL_OVER, video_bttnover);
video_bttn.addEventListener(MouseEvent.ROLL_OUT, video_bttnout);
video_bttn.addEventListener(MouseEvent.CLICK, video_bttnlink);
video_bttn.mouseChildren = true;

function video_bttnover(event:MouseEvent):void
{
	this.buttonMode = true;
	event.target.gotoAndPlay(2);
	//trace(event.target);
}

function video_bttnout(event:MouseEvent):void
{
	event.target.gotoAndPlay(6);

}
trace("gallery_holder loaded");
var vidHome:VidHome = new VidHome();
function video_bttnlink(event: MouseEvent) {
SoundMixer.stopAll();
holder.removeChildAt(1)
gallery_holder.removeChildAt(1);
gallery_holder.addChildAt(vidHome, 1);
holder.addChildAt(blank, 1)
}

```

Can anyone help me?
