basic flash script for loading xml file into a listbox
Found this script from creative cow . It loads the xml file from the url to the listbox denoted by the instance theList.
var theXML:XML = new XML();
theXML.ignoreWhite = true;theXML.onLoad = function() {
var nodes = this.firstChild.childNodes;
for(i=0;i<nodes.length; i++){
theList.addItem(nodes[i].firstChild.nodeValue, i);
}
}theXML.load(”url“);