• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

XML Data in to AS3

New Here ,
Apr 23, 2014 Apr 23, 2014

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!

TOPICS
ActionScript

Views

186

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 23, 2014 Apr 23, 2014

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 23, 2014 Apr 23, 2014

Copy link to clipboard

Copied

LATEST

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

}

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines