Hi people, as you will guess im new to AS3 so please be forgiving!
Im trying to implement a web based XML file into an AS3 based flash doc. I have no problems grabbing the data from the XML, but getting it to display, well it probably obvious, but it aint happenin for me!!
My current code is as follows…
var xmlLoader:URLLoader = new URLLoader();
var xmlData:XML = new XML();
xmlLoader.addEventListener(Event.COMPLETE, LoadXML);
xmlLoader.load(new URLRequest(“http://lctinteractive.com/ryancrossland/headlines.xml”));
function LoadXML(e:Event):void {
xmlData = new XML(e.target.data);
//START DATA TRACE
trace(“XML Output”);
trace("------------------------");
trace(xmlData);
//END DATA TRACE
}
With Thanks,
Ryan
(If your feeling nice, email me some examples to ryan_crossland@mac.com I would appreciate it!)