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.
Like this:
Like Loading...
Published by
luca mezzalira
Being associated with the industry since 2004, I have lent my expertise predominantly in the solution architecture field. I have gained accolades for revolutionising the scalability of frontend architectures with micro-frontends, from increasing the efficiency of workflows, to delivering quality in products. My colleagues know me as an excellent communicator who believes in using an interactive approach for understanding and solving problems of varied scopes.
I helped DAZN becoming a global streaming platform in just 5 years, now as Principal Architect at AWS, I'm helping our customers in the media and entertainment space to deliver cost-effective and scalable cloud solutions.
Moreover, I'm sharing with the community the best practices to develop cloud-native architectures solving technical and organizational challenges.
My core industry knowledge has been instrumental in resolving complex architectural and integration challenges. Working within the scopes of a plethora of technical roles such as tech lead, solutions architect and CTO, I have developed a precise understanding of various technicalities which has helped me in maximizing value of my company and products in my current leadership roles.
View all posts by luca mezzalira
dude, you saved my day 🙂 thanks
hi man,
i can’t reach the link,http://www.mart3.org/newsATOM.zip,do you mind emailing me a copy.
thanks.
try it now!
hi,the link is ok,thanks.
Will 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.
BEWARE 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.
I 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.
i think the link is dead
please post a new link to this zip arhive
thanks
OK, 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!
Does this only work with Atom feeds, or is RSS1/2 also supported?
THANK YOU! Saved me hours and hours and hours of puzzling how to use the libraries in Flash CS4… I really appreciate the sharing…
Thankyou. saved me loads of pain
dude,
The 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
Sorry to everyone, zip file is online again!
Any way to parse out an image for an atom feed?
Any 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 😀
What I mean is parsing out the thumbnail via <media:thumbnail… tag found in atom feeds.
Am 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:
gd:who
gd:where
gd:when
tags
Luca,
Managed 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..
The link is dead…is there a repost in our future? 🙂
Thanks for the rss help. I’ve got everything working just fine, but when I upload all of the files to my server, and launch the website, the rss feed doesn’t work. I’ve debugged it to know that the rss.xml file I’m drawing from isn’t completing it’s loading process. Any ideas?
Hello, this might be a duplicate comment…
I’ve gotten all of this to work nicely locally, but can’t seem to get the reader to work once I have it copied up to my server. It doesn’t seem to get into the “getNews” function. Any thoughts?
thanks
casey
My thought is that I’m not importing properly the library you created. copied the “com” and the “docsATOM” folders to the root of my server. Originally I left the import paths the same as your template file…but I’m not certain if that’s the problem. i figured since the “com” folder and the swf file were in the same root directory, that path would be local.
Hello Hello, looks like this will save my day but the link to http://www.mart3.org/newsATOM.zip does not appear to be working? If you can email me or let me know if I can find it that would be great!!
Tom