# Control over XML menu placement in Flash MX

**URL:** <https://forum.kirupa.com/t/control-over-xml-menu-placement-in-flash-mx/51577>\
**Category:** programming\
**Created:** [May 14, 2004, 7:31am UTC](https://forum.kirupa.com/t/control-over-xml-menu-placement-in-flash-mx/51577 "2004-05-14T07:31:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jjmancini](https://avatars.discourse-cdn.com/v4/letter/j/58956e/32.png) [@jjmancini](https://forum.kirupa.com/u/jjmancini)\
**Post date:** [May 14, 2004, 7:31am UTC](https://forum.kirupa.com/t/control-over-xml-menu-placement-in-flash-mx/51577/1 "2004-05-14T07:31:07Z")

</div>

Hello!

Well, I finally have a working XML menu.

Now I am really stuck on how I can control the placement of the items.  
Here is the example.

[http://www.jjmancini.com/2/2.html](http://www.jjmancini.com/2/2.html)

Notice how far off base it is?

Here is my ActionScript

```auto
menuXml = new XML();
menuXml.ignoreWhite = true;
menuXml.onLoad = function() {
	menuItem = this.firstChild.childNodes;
	for (var i=0; i<menuItem.length; i++) {
		item = _root.attachMovie("itemClip", "itemClip" + i, i);
		item._x = 40;
		item._y = 33*i;
		item.itemLabel.text = menuItem*.attributes.name;
		item.myUrl = menuItem*.attributes.url;
		item.onRelease = function() {
			getURL(this.myUrl,"_blank");
		}
	}
}
menuXml.load("myMenu.xml");

```

I do not have very much control with just these two functions

```auto
item._x = 40;
		item._y = 33*i;

```

So what I am wondering is if there are any functions where I can control where the menu starts ends, etc.

In fact, I also want to have control over a Title. Is there a way I can just add it to the stage, name the dynamic taxt box, and have it apper inside? Much like reading from a txt file?

I know it is a bunch of questions, but any, I mean any help is greatly appreciated!
