First Impressions Of Programming With Adobe AIR
MartinPacker 11000094DH Comments (2) Visits (10390)
Many of you will have, by now, installed the Adobe AIR runtime. Most probably it will be to run something like Twhirl.
At this point many of you will be asking "what's Twhirl?"
If I said it was a nice desktop application that makes using Twitter so much easier I hope you don't ask "what's Twitter?" :-)
So, we're beginning to see these desktop applications coded using Adobe AIR, which stands for "Adobe Integrated Runtime" (formerly "Apollo").So, what's special (if anything) about AIR?
In my experience, two things:
So what does an AIR application consist of?
In principle one can do fancy things with Adobe Flex Builder and .SWF files but that requires expensive tooling. But there is another way:
You can write an AIR application of arbitrary complexity with two files:
This isn't an AIR tutorial so I'm not going to give you samples of the small XML and html files. You can easily find those on the Web. I just want to leave you with the impression there isn't much to it. And there is an O'Reilly pocket guide for AIR. (But there isn't a "For Dummies" book for it - so that's alright.) :-)
There are alternatives - such as Mozilla's XULRunner (whose user interface is based on XUL rather than HTML) and, I suppose, Microsoft's Silverlight. But neither is as easy and "I just need a text editor and the SDK to do it" is pretty enticing.
I mentioned the SDK. It's free (but it doesn't run on Linux and I've not heard any suggestion that it will). It comprises two useful tools:
Both are simple to use.
So, I got a "Hello World" application up and running in about twenty minutes, and that even with typ(o)ing in the XML and HTML files from the O'Reilly book. Swiping from the Web would probably be quicker - but you'd learn less.
Note: IBM doesn't appear to have any commercial interest in AIR. And I certainly don't. So I'm just telling you how I see it.