Chapsterj
Chapsterj

Reputation: 6625

Parsing RSS 2.0 Feeds in ActionScript 3

I'm trying to use these classes http://www.mikechambers.com/blog/2008/01/22/parsing-rss-20-feeds-in-actionscript-3/ with flash professional. The issue I'm running into is some of the parsing classes use mx classes which I can't seem to use in flash Professional. Anyone able to get these classes to work without mx.

Upvotes: 0

Views: 827

Answers (1)

Jason Sturges
Jason Sturges

Reputation: 15955

This example has two SWC library dependencies.

xmlsyndication SWC is built and available from the ZIP file's bin/ folder.

as3corelib is available from GitHub but not built; however, I've compiled a build for you. Note that it includes AIR classes which will throw build errors if you're targeting Flash Player. If you are building for Flash Player and not AIR, delete the air folder from src/com/adobe/air.

Link these SWCs to your Flash Project.

actionscript settings

Paste Mike Chambers example RSSExampleClass class in the actions of a keyframe and add the outputField text field and a button to call onLoadPress.

flash

Run and you'll see:

swf

Flash Professional CS5 FLA of this example available at:
http://jasonsturges.com/labs/stack-overflow/examples/rss-reader/rss-reader.zip

My example project includes:

  • bin/
    • RSS.swf
  • libs/
    • as3corelib.swc
    • xmlsyndication.swc
  • src/
    • RSS.fla

Upvotes: 1

Related Questions