# Xml menu continued

**URL:** <https://forum.kirupa.com/t/xml-menu-continued/20177>\
**Category:** Uncategorized\
**Created:** [May 6, 2003, 5:33am UTC](https://forum.kirupa.com/t/xml-menu-continued/20177 "2003-05-06T05:33:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jc\_](https://avatars.discourse-cdn.com/v4/letter/j/f1d935/32.png) [@jc\_](https://forum.kirupa.com/u/jc_)\
**Post date:** [May 6, 2003, 5:33am UTC](https://forum.kirupa.com/t/xml-menu-continued/20177/1 "2003-05-06T05:33:00Z")

</div>

Hello Kirupa peeps,

I was following the “xmlMenu” thread,  
And I was working on modifiying it.

I am trying to load an image into the the “button” mc.  
I’m a little stuck at this point.  
I have created a new mc called “myi” inside the “button” mc.  
Now I’m trying to load the images in the “for loop”.  
any help would be apreciated.

//////////////////////////////////

myXML = new XML();  
myXML.ignoreWhite = true;  
myXML.onLoad = function(success) {  
menuItem = this.firstChild.childNodes;  
if (success) {  
for (i=0; i\<menuItem.length; i++) {  
menuAttributes = menuItem\*.attributes;  
iloc = menuItem\*.attributes.iconURL;  
myButton = attachMovie(“button”, “button”+i, i);  
myButton.\_x = myButton.\_y=3;  
myButton.\_y += 20\*i;  
myButton.myi = loadMovie(iloc, 1);  
myButton.buttonLabel.text = menuAttributes.jpegURL;

//////////////////////////////////

I hope my explenation is clear.  
I can post more details if needed.

also, attached is the Original file.
