Simple Atom Example
I have put together a very simple example that uses the Atom ActionScript API Alpha that I am working on.
This lists the all of the entries contained within my Atom.xml feed.
Here is the code:
[code]import com.macromedia.data.Atom; var a:Atom = new Atom(); a.addEventListener("onAtomLoad", this); //event broadcast once the Atom feed has been loaded function onAtomLoad(eventObj:Object):Void { var entries:Array = a.entries; var len:Number = entries.length; //build the XML nodes for the Tree component var treeXML:String = "Comments
-
Craig BabcockReally nice work. How are you creating/generating your 'atom.xml'? I see the comment "//need a way to reparse if user manually adds nodes" - how/where would the user add nodes?
-
mike chambers>How are you creating/generating your 'atom.xml'? You can find an Atom template for MovableType at: http://www.movabletype.org/default_templates.shtml#atom_index >how/where would the user add nodes? The Atom classes extends the XML class, so you could use the methods on the XML class to add nodes to the feed that the class represents. Hope that helps clarify... mike chambers mesh@macromedia.com
-
Craig BabcockThanks for the link - very interesting. Your link in a previous post: http://www.atomenabled.org/ was also very helpful. I probably should have prefaced my questions with "I don't know nothin' about RSS/Atom (or MovableType)". So, an Atom feed is generated by an app like MovableType, and your AS 2 Class allows a Flash app to read the feed? Have you used this Class to edit/generate Atom.xml?
-
mike chambers>Have you used this Class to edit/generate Atom.xml? Not yet. I will probably use it mostly to consume Atom feeds. However, you could use it to edit and create feeds. btw, you can find more info on atom at: http://www.atomenabled.org mike chambers mesh@macromedia.com
-
this is such a cool idea i love it. i have been trying to do this for so long. what i want to do is feed the atom.xml file from my blog at blogger.com and feed it to my flash portfolio. if anyone knows or wants to talk about this IM me spins33 or email me or leave post. thanks.
-
hey todd, any joy with getting the blogger atom.xml into a flash file? drop me a line - jakeNOSPAM@jp74NOSPAMPLEASE.com
-
i've been searching everywhere for something along these lines. However, i use blogger and not MT. The atom.xml files generated by blogger have ALOT of data. Any ideas on how it would be different? i want something simple, that just shows posts and comments, no archives or any other such nonsense. Any ideas? anyone?
-
loansYou can also check the pages about- Tons of interesdting stuff!!!