XML/Flash Menu - Placement of Submenu

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

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 :slight_smile:

[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

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:

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:

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

very nice kirupa :wink:

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 :wink:

I updated it: 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 :slight_smile:

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 :stuck_out_tongue:

incorporating that version has been on my todo list :slight_smile:

Yes, that’s what I meant :beam: