# XML/Flash Menu - Placement of Submenu

**URL:** https://forum.kirupa.com/t/xml-flash-menu-placement-of-submenu/113096
**Category:** flash
**Created:** [June 15, 2004, 12:04am UTC](https://forum.kirupa.com/t/xml-flash-menu-placement-of-submenu/113096 "2004-06-15T00:04:28Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [June 15, 2004, 12:04am UTC](https://forum.kirupa.com/t/xml-flash-menu-placement-of-submenu/113096/1 "2004-06-15T00:04:28Z")

</div>

Hey everyone,  
I’ve been using sen’s flash/xml drop-down menu tutorial, and I have been able to create the following for (mt): [http://www.kirupa.com/temp/mt\_menu3.html](http://www.kirupa.com/temp/mt_menu3.html)

If you rollover the first item, you will notice that the submenu loads to the right side. What I would like to have is something similar to the following attached image. Also, the code I am using can be found in the **attached** FLA.

I know how to make the menu appear directly below the parent node, but the problem is that I am unable to shift the menu items down so that the menu items don’t overlap over the existing menu items. You can see an example of what I am trying to do in the **attached** image.

Does anybody have any insight on how to accomplish that. I tried finding the name of each movie clip and shifting them downward, but it seems that none of the movie clip names correlate to the actual menu item - therefore, I am unable to shift them downwards in order to make a space for them.

Thanks!  
Kirupa 🙂

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [June 15, 2004, 8:35pm UTC](https://forum.kirupa.com/t/xml-flash-menu-placement-of-submenu/113096/2 "2004-06-15T20:35:55Z")

</div>

**[font=Arial][size=3][color=red]EDIT: Never mind the following message - I figured it out :)[/color][/size][/font]**

After tinkering with it for about 4 hours or so, here is how the menu looks like so far: [http://www.kirupa.com/temp/mt\_menu.html](http://www.kirupa.com/temp/mt_menu.html)

Now, if I were interested in changing the rollover colors, what can I do?

I have tried adding the following code after a mySubButton.onRelease action just to get on the right track:

```auto
mySubButton.onRollOver = function() {
trace("hey!");
};

```

Yet when I rollover a menu item, I do not see a trace command. It seems that the onRollOver function is ignored. Yet when I click the menu item, the onRelease function a few lines earlier is enabled, and I do see a trace of the URL.

Thanks!  
Kirupa :ub:

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [June 16, 2004, 9:24am UTC](https://forum.kirupa.com/t/xml-flash-menu-placement-of-submenu/113096/3 "2004-06-16T09:24:58Z")

</div>

That menu is awesome 🙂 You should write a tutorial :love:

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [June 16, 2004, 7:07pm UTC](https://forum.kirupa.com/t/xml-flash-menu-placement-of-submenu/113096/4 "2004-06-16T19:07:09Z")

</div>

very nice kirupa 😉

But I noticed one thing. If you expand the last menu ‘control panel demos’ then close it, notice that the submenus belonging to that menu item are still there and you can still rollOver them. You might not be able to see them since you’re covering them with a layer but they are still there. Just remove them on item close. Good job though 😉

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [June 16, 2004, 9:14pm UTC](https://forum.kirupa.com/t/xml-flash-menu-placement-of-submenu/113096/5 "2004-06-16T21:14:05Z")

</div>

I updated it: [http://www.kirupa.com/temp/XMLMenu\_MX4.html](http://www.kirupa.com/temp/XMLMenu_MX4.html) I think (mt) will handle it from there. I fixed that issue hga - that annoyed me also 🙂

Ilyas - there is a tutorial written by sen that I used for a good portion of the animation. Here it is: [http://www.kirupa.com/developer/actionscript/xml\_dropdown\_menu.htm](http://www.kirupa.com/developer/actionscript/xml_dropdown_menu.htm) 😛

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [June 16, 2004, 10:19pm UTC](https://forum.kirupa.com/t/xml-flash-menu-placement-of-submenu/113096/6 "2004-06-16T22:19:54Z")

</div>

incorporating that version has been on my todo list 🙂

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [June 17, 2004, 8:44am UTC](https://forum.kirupa.com/t/xml-flash-menu-placement-of-submenu/113096/7 "2004-06-17T08:44:14Z")

</div>

Yes, that’s what I meant :beam:
