hi friends,
thanks for the earler help.
i am using this menu which is working fine but my client require me to differentiate the main menu and submenu with different attached movie clip.
for the main menu i have used. “itemClip” as attached movie clip and xml code is “myItem”
Now i want another submenu . “subClip” as attached movie clip and xml code is “subItem”
please help with coding
flash code
menuXml = new XML();
menuXml.ignoreWhite = true;
menuXml.onLoad = function(success) {
if (success) {
menuItem = this.firstChild.childNodes;
for (var i=0; i<menuItem.length; i++) {
item = _root.attachMovie("itemClip", "itemClip" + i, i);
item._x = 0;
item._y = 20*i;
item.itemLabel.text = menuItem*.attributes.name;
item.myUrl = menuItem*.attributes.url;
item.onRelease = function() {
getURL(this.myUrl,"_blank");
}
}
}
}
menuXml.load("myMenu.xml");
xml code:
<?xml version="1.0"?>
<myMenu>
<myItem name="Philter" url="http://www.philterdesign.com/" /> //MY MAIN MENU
<subItem name =="Philter" url="http://www.philterdesign.com </submenu> //SUBMENU WITH with "subClip" atttached movie clip.
<myItem name="Studiowhiz" url="http://www.studiowhiz.com/" />
</myMenu>