I made the switch from Windows to OS X about 3 months ago. I have absolutely loved it and have not had any problems except for one thing. I have not been able to find a good editor to write ActionScript code.
I had been using JEdit, but it is a little to slow and a little too Java for my liking. The other night, I came across the SE|PY editor project.
Just a quick fyi. I have updated my ActionScript 2 Atom class.
You can find more info on the latest changes, and well as view the class here.
I have posted a new version of my Atom ActionScript class. This is version .20 and has a number of changes:
I am still calling this a beta, because I am thinking about some major re-factoring. Right now it does not support non-Atom names spaces, and is not constructed in a way that would make it easy to extend to add this functionality. I am trying to figure out how to make it easy to extend in order to add custom name space support.
I am getting ready to release a beta of an ActionScript class to load, parse and manipulate Atom feeds.
Here is another simple example that I put together, to help test some of the APIs.
Here is the code:
import com.macromedia.data.Atom;
var a:Atom = new Atom();
a.addEventListener("onAtomLoad", this);
entryTree.addEventListener("change", this);
entryField.html = true;
titleField.setStyle("borderStyle", "none");
titleField.setStyle("fontSize", 20);
descriptionField.setStyle("borderStyle", "none");
var entries:Array;
//event broadcast once the Atom feed has been loaded
function onAtomLoad(eventObj:Object):Void
{
titleField.text = a.getFeedTitle()["value"];
descriptionField.text = a.getFeedTagline()["value"];
entries = a.entries;
var len:Number = entries.length;
//build the XML nodes for the Tree component
var treeXML:String = "<node label=\"Entries\">";
for(var i:Number = 0; i < len; i++)
{
treeXML += "<node label=\""+entries[i].title.value+"\" index=\""+i+"\" isBranch=\"true\"/>";
}
treeXML += "</node>";
entryTree.dataProvider = treeXML;
entryTree.setIsOpen(entryTree.getTreeNodeAt(0), true);
entryTree.selectedNode = entryTree.getTreeNodeAt(0).getTreeNodeAt(0);
change({target:entryTree, type:"change"});
}
function change(eventObj:Object):Void
{
var index:Number = Number(eventObj.target.selectedItem.attributes.index);
entryField.text = entries[index].content.value;
}
a.load("http://www.markme.com/mesh/atom.xml");
As part of the ActionScript 2 Atom class that I am putting together, I have created an ActionScript class that represents a W3CDateTime string. This is the format that Atom uses to represent dates.
A beta of the class and simple usage example is included below. If you have any questions or suggestions (especially parsing optimizations), or find any bugs, please post them in the comments.
Here is a simple example of the class in use:
I am going to be heading down to Sydney in a couple of weeks for the MXDU conference. It is shaping up to be an awesome conference with some of the top developers in the world.
I will be doing a session and a birds of a feather on Central, maybe helping out with one of the keynotes, and most importantly, hanging around with other developers.
Anyways, if you are going to be in the southern hemisphere in a couple of weeks, you can’t afford to miss the conference.
I am putting together an ActionScript 2 class to represent and parse Atom feeds. I have put together an early alpha version of the class, but wanted to get some feedback on it before I continue work on it.
Alpha .22: (Feb.12 2004)
Alpha .20:
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:
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 = "<node label=\"Entries\">";
for(var i:Number = 0; i < len; i++)
{
treeXML += "<node label=\""+entries[i].title.value+"\" isBranch=\"\"/>";
}
treeXML += "</node>";
entryTree.dataProvider = treeXML;
entryTree.setIsOpen(entryTree.getTreeNodeAt(0), true);
}
a.load("http://www.markme.com/mesh/atom.xml");