Archive for October, 2007

Adobe AIR Links

Below is a list of my favourite Adobe AIR related links. Some of them contain some great information relating to AIR.

If you have any that I have missed, feel free to post it.

Mike Downey
Mike Chambers
Lee Brimelow
Christian Cantrell
Kevin Hoyt
Adobe AIR Developer Center
Adobe AIR Forum
onAIR
Yahoo Group
O2Apps

Javascript AIR Samples

If you learn best by reading code, then I encourage you to download Kevin Hoyt’s examples. The zip file contains samples ranging from writing / reading files, to connecting to a database (SQLite).

“Revisiting 35+ samples for Beta 2 required a substantial amount of focus and time. As the next release of AIR hits the stands, I’m sure I’ll be required to find the time to update them once more. The good news is that I’m working on an easier way to share the samples, and allow for the community to get involved. I envision a place in the near future where you can add your own samples, comment on existing samples, and even rate them. Stay tuned!”

http://blog.kevinhoyt.org/2007/10/25/javascript-air-samples-updated/

Set mime type for AIR files

For some reason, I could not get the badge (check previous post for in browser install) to work as it should, I would always get an error of “Error#2032″. After a bit of investigating by searching google, I found out it is because the server didn’t recognise it correctly, so an easy fix was to create a .htaccess file and place this in…

AddType application/vnd.adobe.air-application-installer-package+zip .air

AIRPacker

Yesterday and today, I have been working on an Adobe Air application that makes use of Dean Edwards Javascript Compressor called “Packer“. I found myself using Packer more and more often, and it was becoming a bit of a pain loading up the page, copy and pasting my Javascript in, and then creating the compressed file. Most of the time I ended up closing the page by mistake. Anyway, I wanted my own lazy way of doing it, so I set out to create an application that could open and save out files.

So with permission from Dean (thanks Dean) to use his Packer script, I give you AIRPacker…

packer1.jpg packer2.jpg
packer3.jpg packer4.jpg

As you can see, the layout is basically the same as what is on the Packer page. Most of my time was spent learning the AIR API.

At the moment it has only been really tested on Windows, I don’t have access to a Mac at home, so let me know of any problems.

To run the application, you will need Adobe AIR.

Install from your browser…

Here is the AIR file…

AIRPacker

Note: This is a beta.

If anyone wants the source, just open it up with winrar and extract the contents. Or I could upload a zip file if people want it. :)

Any problems, please post a comment.

Ext JS - 2.0 Beta

If anyone is thinking about creating slick applications in the browser, or even thinking of creating something with Adobe AIR, then I highly suggest you take a look at Ext JS 2.

Ext JS is a GUI library that has tons of components, comes with excellent documentation, tutorials, and a community.

I have used Ext JS now and again for personal projects, mainly using it for developing desktop applications using Adobe AIR, and will likely continue to use it.

Have a look at this desktop example application in your browser (note: if you have firebug, disable it, or you may find it is a little slow)…

http://extjs.com/deploy/dev/examples/desktop/desktop.html

Check the main site out…

http://extjs.com/