Hi, I have this code within the flash to load in the XML file. A list of buttons is generated from the XML list. How do I find out which is the current 'item' selected, and then how to select the next 'item' from the XML list - Thanks  myXML = new XML(); myXML.ignoreWhite = true; myXML.load("items.xml"); myXML.onLoad = function(_status) { if (_status) { var clientList:Array = []; var clientRegistry:Object = {}; tempxml = myXML.firstChild.childNodes; var space = 10;
for (var i = 0; i<tempxml.length; i++) { var clientData:Object = {}; var item = all_items.list_mc.attachMovie("clip", "clip"+i, i); item._x = clientData["x"]=(item._width+space)*i; item.title_txt.text = clientData["title"]=tempxml.attributes.title; item.path = tempxml.attributes.path; item.thumb = tempxml.attributes.thumb; item.swf = tempxml.attributes.swf; } } }; |