Can someone shed some light on what my XML doc would look like if this is what I am parsing in:
function menuXML(){ this.createTextField("tf",this.getNextHighestDepth(),100,100,100,100); this.createEmptyMovieClip("mainMenu",this.getNextHighestDepth()); xmlLength = menu_xml.firstChild.childNodes.length; trace(menu_xml.firstChild.childNodes.length); xml = menu_xml.firstChild.childNodes; yPos=0; for(i=0;i<xmlLength;i++){ mainMenu.createEmptyMovieClip(xml[i].attributes.n,mainMenu.getNextHighestDepth()); mainMenu[xml[i].attributes.n].createTextField(xml[i].attributes.tf,this.getNextHighestDepth(),0,yPos,50,15); mainMenu[xml[i].attributes.n][xml[i].attributes.tf].html = true; mainMenu[xml[i].attributes.n][xml[i].attributes.tf].htmlText = xml[i].attributes.n; mainMenu[xml[i].attributes.n]._y = yPos; yPos+=10; mainMenu[xml[i].attributes.n].onRelease = function(){ pl = xml[i].attributes.dl; funcSite(pl); } }//end for }//end function menuXML --------------- Here is my XML structure, where did I go wrong? <?xml version="1.0"?> <menu_xml> <menu> <name>Belgian Waffles</name> </menu> </menu_xml> Much Thanks. _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders