# XML Drop Down Menu - onRelease problem

**URL:** <https://forum.kirupa.com/t/xml-drop-down-menu-onrelease-problem/214834>\
**Category:** flash\
**Created:** [February 1, 2007, 11:52am UTC](https://forum.kirupa.com/t/xml-drop-down-menu-onrelease-problem/214834 "2007-02-01T11:52:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MikeyAlder](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/mikeyalder/32/3241_2.png) [@MikeyAlder](https://forum.kirupa.com/u/MikeyAlder)\
**Post date:** [February 1, 2007, 11:52am UTC](https://forum.kirupa.com/t/xml-drop-down-menu-onrelease-problem/214834/1 "2007-02-01T11:52:17Z")

</div>

Hi,

I was wondering if someone could help. I’m not new to ActionScript, but I’m new to using XML in flash, so bear with me.

I’m trying to create a drop down menu, using the tutorial XML Driven Drop Down Menu, on this site. But instead of menus opening when you hover over them, I want you to have to click them. But when I change the actionscript from onRollOver to onRelease, it doesn’t work.

Does anyone know what I’m doing wrong?

Here is the code that I’m using

[COLOR=“Lime”]Before: this is what is in the Tutorial[/COLOR]

```auto

[COLOR="Red"]curr_item.onRollOver = curr_item.onDragOut =[/COLOR] function(){
	var x = this._x + this._width - 5;
	var y = this._y + 5;
	GenerateMenu(curr_menu, "submenu_mc", x, y, 1000, this.node_xml);
};

```

[COLOR=“lime”]After: this is what i’m trying to change it too[/COLOR]

```auto

[COLOR="Red"]curr_item.onRelease =[/COLOR] function(){
	var x = this._x + this._width - 5;
	var y = this._y + 5;
	GenerateMenu(curr_menu, "submenu_mc", x, y, 1000, this.node_xml);
};

```

I’ve tried leaving in the [COLOR=“Red”]curr\_item.onDragOver[/COLOR] in but it still doesn’t work?

I’m trying to make a menu like on this site [http://www.arteye.com/eyemain.html](http://www.arteye.com/eyemain.html) click “projects” and then a submenu appears click “web” and a list of projects appear i.e.

Any help would be great. Thanks
