Past few days, I have came across Adobe AIR through digg, techmeme, delicious and so today i thought i should try this. Adobe AIR lets us their existing web development skills in HTML, AJAX, Flash and Flex to build and deploy rich Internet applications to the desktop. For Application development you will need two things:
- Adobe AIR Runtime : Necessary for running AIR applications.
- AIR_SDK Provide necessary libraries to build AIR application
Having
Adobe AIR extension for Dreamweaver CS3 can be very helpful as it facilitates to package and preview .air application files directly within Adobe Dreamweaver CS3.
As my first AIR application, I ported my
rubiks cube timer as a desktop application (
RubikTimer.air). Its very easy using dreamweaver extension, have a look here :
Create your first HTML-based AIR application with the AIR SDK (great tutorial for beginners).
One problem I faced: Usually
setInterval("display()",500) works with Firefox/IE but it was not starting with no error message to look into but then i found out about using Adobe CommandLine tool. (via
Three ways to debug Adobe javascript Application). It´s called ADL and resides in the /bin folder of the SDK. ADL showed the Error: "Unsafe javascript". Then after some random changes when i change it to
"setInterval(display,500)", It started working. Another problem I faced was related to
keypress events in javascript, were not working with AIR (still have to resolve this issue)
Download
RubikTimer.air hereWeb Based
Rubik Cube TimerRelated Post:
Sample Adobe AIR Applications
Trying hands on Google gadgets