First off here is my code:
var xmlLoader:URLLoader = new URLLoader();
var xmlData:XML = new XML();
xmlLoader.addEventListener(Event.COMPLETE, LoadXML);
xmlLoader.load(new URLRequest("Content.xml"));
function LoadXML(e:Event):void {
xmlData = new XML(e.target.data);
ParseContent(xmlData);
}
function ParseContent(contentInput:XML):void {
instructions_mc.polygonTxt.text = xmlData
trace("XML Output");
trace("------------------------");
trace(contentInput);
}
now as you can see I have my dynamic text field in a mc as: instructions_mc.polygonTxt.text = xmlData
but this returns all of the xml doc as it appears in the output. How do I remedy this, as to say what is the correct path I am needing ;(? I would like to use the same xml file to populate several dynamic text fields already on the stageā¦
Please help! Thanks!