5
2010
Hacking your first Air application
I’ve recently been developing some concepts for a client that needed to be a cross-platform rich client app. By nature I’m a Java guy, but because of the target environment, getting a JRE on the target platform was going to be problematic. So we were looking into other cross-platform alternatives, and the install/update experience with Air seemed to fit the bill (I would *love* to be doing it in Griffon, but the JRE install experience is just too clumsy for our target – hopefully Oracle will fix that in v7!).
The platform is really easy to get productive on. You can write Air apps in Flash or Flex or just plain old HTML/CSS/Javascript/jQuery. If you choose the html route, there’s very few new skills to learn and you’ll have bundled up your first app within a few minutes of getting started.
You have a known Webkit engine bundled with Air, so there’s no special html/css/js hackarounds required – and you can just use good old jQuery for your interaction magic. Even the install badge generation and automated update experience is super easy to get going. The developer experience is fantastic. They’ve really done some good thinking here.
So how do you get started with Air? Here’s a few jump points that I’ve collected to get you started:
- Download the free Aptana Studio Eclipse plugin (or standalone app if you’re not an Eclipse kinda guy).
- Checkout the Create an AIR TODO list in 5 minutes tutorial over on Sitepoint.
- Have a look around the Adobe AIR with Javascript site for the API refs
I’ve found Aptana studio to be a fantastic way to which up and run prototypes from directly within the IDE. The plugin also gives you a new /Export/AIR Application option from Eclipse which makes the bundling of your .air file very straightforward
As for supporting books? I bought the ebook for Adobe AIR 1.5 Cookbook and it has been a fantastic resource. It gives almost all the cookbook examples in both Flex and Javascript so you can quickly take advantage of lots of the common operations (tray integration, start on logon, custom window shapes, etc). I’ve really enjoyed it and found it an awesome reference.
You can also download an older title which is completely free called Adobe Air for Javascript Developers Pocket Guide. A much smaller title which gives you a good taste for the platform none-the-less.
Anyways, I’m having a fantastic time with Air and have found the learning curve (using the HTML/Javascript model) to be extremely straightforward – productive from day one. I’ll report back on the Air front once our app actually goes live for the client. It’s a Government initiative, so there’ll be lots of press when the launch happens!
Can’t wait to play with some options for a Grails backend that fronts an Air client. It’s definitely on my list!
1 Comment + Add Comment
Leave a comment
Glen Smith
Archives
- January 2012
- November 2011
- October 2011
- September 2011
- August 2011
- July 2011
- June 2011
- April 2011
- March 2011
- January 2011
- November 2010
- October 2010
- September 2010
- August 2010
- July 2010
- June 2010
- May 2010
- April 2010
- February 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- August 2009
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- May 2007
- April 2007
- March 2007
- February 2007
- January 2007
- December 2006
- November 2006
- October 2006
- September 2006
- August 2006
- July 2006
- June 2006
- May 2006
- April 2006
- March 2006
- February 2006
- January 2006
- December 2005
- November 2005
- October 2005
- September 2005
- August 2005
- July 2005
- June 2005
- May 2005
- April 2005
- March 2005
- February 2005
- January 2005
- December 2004
- November 2004
- October 2004
- September 2004
- August 2004
- July 2004
- June 2004
- May 2004
- March 2004
- February 2004
- January 2004
- December 2003
- November 2003
- October 2003
- September 2003

An article by Glen





This is great stuff. Thanks for sharing. Makes me want to write a Hudson Air app since I haven’t gotten around to writing an Ubuntu docky plugin yet.