tippytarka
Programmer
hi.. i've produced this script to load and loop through an XML file
and i get this result...
Code:
////init TextArea component
menu.html = true;
menu.wordWrap = true;
menu.multiline = true;
menu.label.condenseWhite=true;
////load css
nomadStyle = new TextField.StyleSheet();
nomadStyle.load("nomadstyles.css");
menu.styleSheet = nomadStyle;
////load in XML
allData = new XML();
allData.ignoreWhite = true;
allData.load("roster_01_menu_artists_test.xml");
allData.onLoad = function(success)
{
if(success)
{
menu.text = allData;
allData=this.firstChild.childNodes;
for(i=0; i<allData.length; i++) {
menu=allData[i].attributes.text;
}
}
}
and i get this result...
onetwothree
but what i want is to get this result....