Ah, actionscript libraries. You can never have too many of them, right? Right. And not to mention that there's nothing better than someone writing code for you. In all honesty I haven't had much time to myself to use any of the wonderful AS3 libraries that are out there right now, but while working on a chapter for AIR Instant Results I was inspired to start my own project.
The chapter utilizes the Blogger Data API, but because it must be compressed into 30 or so pages, I have to develop a very simplified set of classes to handle the communication. Any OOP stickler would probably give me a hard time about the class structure, but thats a compromise that you sometimes have to make when writing a book. Yes, because I love OOP programming and can't get enough of it, it's certainly sad to have to make compromises. However, this hasn't stopped me from reconciling my own guilt. In my spare time I've been diligently working on a comprehensive AS3 library for the Blogger API. Hooray! Guilt-be-gone.
AS3BloggerLib is my first leap into creating my own open source Actionscript project, and I'm looking forward to fixing, updating, changing, and redesigning this thing until its picture perfect. In all honesty, it still needs some sprucing up (needs lots of encapsulation), but works pretty well for the most part. Certainly there are things that are missing, most notably documentation, but these things should appear in the near future.
No packaged downloads are available yet, so if you're interested in getting at the code you'll have to do an SVN checkout to get the source. Eventually there will be a packaged SWC, examples, and solid documentation. Also, I certainly am not opposed to any criticism or suggestions for improvement, so don't hesitate to start discussing things on the discussion group.
The last note I should make is that this library only works for installed (AIR) applications at the moment because Google does not host a crossdomain file. Other than that, I hope this goes over well!



2 Responses to “My new project: AS3BloggerLib”
By Mike on Sep 14, 2007 | Reply
David over at orangeflash (aka Nirth) has done something similar with WordPress and uses XMLRPC as the communication gateway.
I’m currently in the process of building a flex based ‘theme’ on top of wordpress (after I got tired of trying to mercilessly hack up div, float, css that). In utilizing some of this functionality it became apparent some custom php methods need to be modified / built to try to replicate the more feature rich returns from a standard wp session. The metaData / bloggerAPI is decent but doesn’t give you completely what you want.
Another guy over here (don’t know his name) did something similar but it looks like it was more of a POC that it could be done and not necessarily built as a full blown RIA.
You might want to delve into one of his API dependencies which is also a code project as3-rpc.
By Matt on Sep 16, 2007 | Reply
It would be great to use the as3-rpc library. In fact, the project owner is my co-worker and sits next to me at work. However, the Blogger data API does not utilize XMLRPC. It utilizes simple GET and POST calls to particular URLs rather than using one gateway and a specified method call.