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!”
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…
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…
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.
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)…