Will someone point me to the answer on this, how would the xml file be 
structured if this is what is being parsed in:

var menu_xml:XML = new XML();
menu_xml.onLoad = menuXML;
menu_xml.load("menu.xml");
menu_xml.ignoreWhite = true;
menuXML();

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

------------------------
This is my xml structure, what have I done that is incorrect?

<?xml version="1.0"?>

<menu_xml>
<menu>
<name>Belgian Waffles</name>
</menu>
</menu_xml>


      
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to