Copy link to clipboard
Copied
Hi guys, before i begin please forgive my ignorance/stupidity.
I'm trying to get an XML file (Formula 1 headlines to be exact) onto my published swf sort of like an RSS feed, that you can then scroll down and look at said headlines. I have the spaces ready for the text but i have no idea where to start.
I know this doesn't give you much, but I was hoping that someone would get the general idea?
Thanks in advanced!
Copy link to clipboard
Copied
Try starting with finding a tutorial. If you search Google using terms like "AS3 XML tutorial" that should get you off to a good start. I just checked it myself and see there's quite a few.
Copy link to clipboard
Copied
if you're loading a local xml file use the urlloader class to load the xml:
var xml:XML;
var ulrloader:URLLoader=new URLLoader();
urlloader.addEventListener(Event.COMPLETE,completeF);
urllloader.load(new URLRequest("yourxml.xml"));
function completeF(e:Event):void{
xml=XML(e.target.data);
//parse your xml and display it
}