Help With XML With AS3!

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 [email protected] I would appreciate it!)

I never understand why people expect others to e-mail them on a forum… it makes more sense to post an answer here so others can benefit from it.

Anyway, what you’re possibly after is something like this:

trace(xmlData.toXMLString());

Yeah ill try that, true point about the email ( I did mean a flash file though…dont know if you can send over forums)

Thanks again