Filed under: Flash | Tags: atom actionscript 3, atom parsing, library xml syndication, parsing atom actionscript 3, parsing feed actionscript 3, parsing rss actionscript3, rss 2.0 actionscript 3, working with feeds actionscript 3
In these days I parse some RSS feeds in Actionscript 3, when I tried with E4X in Flash CS4 I can’t retrieve data in the nodes and attributes, in particular in an ATOM feed.
So I start to take a look around in the web and I find an Adobe library, made by Mike Chambers, that allow you to parse all kinds of feeds: RSS 1.0, 2.0 and ATOM.
When I tried to use it on my project, library gives me some problem because it is for Flex and not for Flash, so I modify a couple of import packages and few lines of code and now everything is ok.
In the zip file you can find an easy sample to work with this library and ATOM.
I think it is helpful to put this modify packages for Flash downloadable from this blog, for everyone that it will find the same problem during a project.
You can find more info and documentations at googlecode page of this library project.
Possibly related posts: (automatically generated)
22 Comments so far
Leave a comment
Line and paragraph breaks automatic, HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>






dude, you saved my day
thanks
Comment by bob February 13, 2009 @ 8:50 pmhi man,
Comment by lance April 16, 2009 @ 8:27 ami can’t reach the link,http://www.mart3.org/newsATOM.zip,do you mind emailing me a copy.
thanks.
try it now!
Comment by lucamezzalira April 16, 2009 @ 11:37 amhi,the link is ok,thanks.
Comment by Lance April 17, 2009 @ 2:18 amWill this work with CS3? I have been trying various things for days to get this to work from various downloads on the web. You state that you are using CS4. I don’t feel like going through hoops again doing work just to find out it won’t work. Been banging my head for awhile on this. Did you backsave to CS3. CS3 supports AS3. No offense meant by this post, and thanks for sharing.
Comment by Don April 27, 2009 @ 9:59 pmBEWARE of the link if you have CS3, you will waste your time downloading the files above.
Yep. Like everywhere else on the web if someone uses CS4 they almost never back-save their files so it limits people that can open files. Also, I didn’t see the AS3 files in the package, just the .fla so there is no way for anyone to open or try this link with a version OTHER THAN CS4.
I don’t get it. For years, I have always back-saved files in numerous applications so that people can open things. It’s the basics of computing. I realize you are sharing these files out of the kindness of your heart, but realize that people don’t necessarily have the exact Operating System, software versions, fonts, browsers, etc…. So, they spend their time reading your posts, downloading your links and reading documentation only to strike out opening the file(s). There were two things that would make this download a lot more friendly to a lot of Flash users. Backsave to CS3 and include the raw AS3 file in the zip directory. This will give options if they can’t open “YOUR” version of the “.fla” file.
I’m making this post to save time for other people using CS3. Until the blogger decides to post an update to the link, don’t bother trying these files.
Comment by Don April 27, 2009 @ 11:51 pmI don’t think there’s anything incompatible with CS3. I have backsaved the file(s) if you still want this. My own complaint is that the parser only shows the item titles. This could be because it was based on Mike Chambers’s Flex package which does the same. Anyway, I’d appreciate it if I could get the complete parsing code.
Comment by margot darby June 6, 2009 @ 7:48 pmi think the link is dead :-/
please post a new link to this zip arhive
thanks
Comment by Anonymous July 26, 2009 @ 10:12 pmOK, I have uploaded the backsaved CS3 version of this. Go get it:
http://podsnap.org/newsATOM_cs3.zip
I changed the security settings (in Publish Settings) to ‘access network only’ and replaced the feed with a friend’s blog. Otherwise it is the same as the author’s original.
Note that it does not output to an RSS/Atom reader: it just loops through the items and shows the titles in trace statements! This is because it is adapted from the Mike Chambers Flex package, as the author notes above. Somebody please expand this into a real Atom reader with full items!
Comment by margot darby August 2, 2009 @ 4:27 pmDoes this only work with Atom feeds, or is RSS1/2 also supported?
Comment by ERik September 16, 2009 @ 6:19 pmTHANK YOU! Saved me hours and hours and hours of puzzling how to use the libraries in Flash CS4… I really appreciate the sharing…
Comment by Timo December 3, 2009 @ 9:17 pmThankyou. saved me loads of pain
Comment by John Hornsby December 15, 2009 @ 11:26 amdude,
Comment by Inga January 20, 2010 @ 11:28 pmThe link to your zip is page not found, link,http://www.mart3.org/newsATOM.zip,do you mind emailing me a copy?
thanks.
Another request for the source link.
http://www.mart3.org/newsATOM.zip
If you can repost or mail me a copy as well, it would be much appreciated!
Thanks
Comment by Dave Grant February 1, 2010 @ 5:40 pmSorry to everyone, zip file is online again!
Comment by lucamezzalira February 2, 2010 @ 11:12 amAny way to parse out an image for an atom feed?
Comment by Dan February 6, 2010 @ 4:30 amAny insight would be great.
thanks,
Hi Dan,
what do you mean? how to find a tag with a path of an image?
or what?
make me an example please
Comment by lucamezzalira February 6, 2010 @ 7:44 amWhat I mean is parsing out the thumbnail via <media:thumbnail… tag found in atom feeds.
Comment by Dan February 8, 2010 @ 12:08 amAm trying to have a flash app show the thumbnail, title, date, author and display on my homepage. I can get all but not thumbnail.
thanks in advance for any insight.
d
You are successful in getting the title, it would be nice if you could show how to get at:
Comment by chris devriese March 5, 2010 @ 1:19 amgd:who
gd:where
gd:when
tags
Luca,
Comment by Inga March 8, 2010 @ 3:10 pmManaged to solve the <media:thumbnail… parse using namespace. Lots of info at adobe.com.
Please can you post a link to the CS4 implementation for flash?.. The link doesn’t seem to work anymore. I appreciate your work on this! I’m trying to implement RSS feed into flash and this looks promising..
Comment by Nick April 13, 2010 @ 11:18 amThe link is dead…is there a repost in our future?
Comment by Ed June 6, 2010 @ 7:02 pm