Xml menu continued

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.