Hi,
I'm loading XML, but I'm having trouble making a for loop so that I can output into text fields my xml info.
I use this to load and put into the output window. Eventually I will put it into a text field.
What I want really to do is for flash to output a list. This is what I want it to look like.
PHP Code:
var newsXML:XML = new XML();
newsXML.ignoreWhite = true;
var output:String = "";
newsXML.onLoad = function(success) {
if (success) {
var news:Array = newsXML.firstChild.firstChild.childNodes;
output = news[0].childNodes[0].nodeValue;
output2 = news[1].childNodes[0].nodeValue;
output3 = news[10].childNodes[0].nodeValue;
trace(output);
trace(output2);
trace(output3);
} else {
trace("XML file did not Load");
}
};
newsXML.load("http://feeds.oddsmaker.com/tournaments.xml");
If you look at this XML you will see that there are many different TOURNAMENTS. What I want is to have them all in a list.
Does anyone know what I should do?
I also want to have scrolling bar, but I should be able to figure that out.
Thanks,
Brandon