I"m at a point where I can’t figure out the next step.
I’m trying to lead some of the text from an XML file into a text field.
I’m pretty sure this needs to be a dynamic text field so I can put an instance name on it.
I just dont know how to implement that.
Any help would be appreciated.
var xmlLoader:URLLoader = new URLLoader();
var xmlData:XML = new XML();
xmlLoader.addEventListener(Event.COMPLETE, LoadXML);
xmlLoader.load(new URLRequest("http://www.kirupa.com/net/files/sampleXML.xml"));
function LoadXML(e:Event):void {
xmlData = new XML(e.target.data);
ParseBooks(xmlData);
}
function ParseBooks(bookInput:XML):void {
trace("XML Output");
trace("------------------------");
trace(bookInput.Book.author.text()[0]);
}