# Xml Menu

**URL:** https://forum.kirupa.com/t/xml-menu/157190
**Category:** flash
**Created:** [July 30, 2005, 6:36pm UTC](https://forum.kirupa.com/t/xml-menu/157190 "2005-07-30T18:36:12Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![peter\_b](https://avatars.discourse-cdn.com/v4/letter/p/85f322/32.png) [@peter\_b](https://forum.kirupa.com/u/peter_b)
#### Post date: [July 30, 2005, 6:36pm UTC](https://forum.kirupa.com/t/xml-menu/157190/1 "2005-07-30T18:36:12Z")

</div>

I am working with a tutorial i found on here based on the xml menu in flash mx 2004. it basically creates a menu and populates it from external xml file.

rather than a drop down menu i have modified it so it works like a menu bar with the drop down items being positioned horizontally rather than vertically. My main problem is that each menu item is a different width, according to how many characters in the text length what i want to happen is that the menus all butt next to each other horizontally.

I am very close but not quite there and would really appreciate any help with my code. I have uploaded my fla as it is easier to see what im trying to get at. My xml file is basially formatted to produce a menu and sub menu items:

\<?xml version=“1.0”?\>  
\<menu name=“links”\>  
\<item name=“Home” action=“gotoURL” variables=“[http://www.google.com](http://www.google.com)”/\>  
\<menu name=“Products”\>  
\<item name=“Floors” action=“gotoURL” variables=“[http://www.someurl.com/something/somethin](http://www.someurl.com/something/somethin)”/\>  
\<item name=“Maintainence” action=“gotoURL” variables=“[http://www](http://www). [someurl.com/someurl/someurl](http://someurl.com/someurl/someurl)”/\>  
\</menu\>  
\<menu name=“Services”\>  
\<item name=“Installation” action=“gotoURL” variables=“[http://www](http://www). [someurl.com](http://someurl.com)”/\>  
\<item name=“Customer Service” action=“gotoURL” variables=“[http://www](http://www). [someurl.com/someurl/someurl.php](http://someurl.com/someurl/someurl.php)”/\>  
\</menu\>  
\<menu name=“About Us”\>  
\<item name=“Company Info” action=“gotoURL” variables=“[http://www](http://www). [someurl.com/someurl/someurl/someurl.htm](http://someurl.com/someurl/someurl/someurl.htm)”/\>  
\<item name=“Showroom” action=“gotoURL” variables=“[http://www](http://www). [someurl.com/someurl/index.htm](http://someurl.com/someurl/index.htm)”/\>  
\<item name=“Location” action=“gotoURL” variables=“[http://www](http://www). [someurl.com/web/index.htm](http://someurl.com/web/index.htm)”/\>  
\</menu\>  
\</menu\>  
\<item name=“Contact Us” action=“gotoURL” variables=“[http://www](http://www). [someurl.com](http://someurl.com)”/\>  
\</menu\>
