Archive for June, 2007

Apollo (now AIR) Sample Applications

By now you have probably heard that:

  1. Apollo is now officially AIR (Adobe Integrated Runtime), and
  2. The AIR beta went live this week, and is available for download.

I did a lot more product definition for this release, and much less coding, but I did manage to write one interesting new application:


Salsa is an Amazon S3 client which lets you easily manage your buckets and files in the S3 cloud. You can create and delete buckets as well as upload and download, drag and drop, and copy and past between your computer and Amazon S3. You can even manage multiple files at once. Salsa uses the open-source as3awss3lib ActionScript 3 S3 library that I wrote, so if you don’t like the way Salsa works, you can write your own client.

Salsa, along with the other Adobe AIR sample applications (and their source code), is available here.

In addition to Salsa, I managed to update some of my old sample apps from the alpha:


MapSnap is now MapCache. It lets you look up addresses using Yahoo! Maps, and save the maps for offline use. I used to call it MapSnap because all it let you do is create a snapshot of a map and save it, but now you can save the map, copy it to your clipboard, or drag and drop the map to your desktop. It’s a simple but handy little app, and demonstrates the following:

  • The AIR HTMLControl.
  • Script bridging (calling JavaScript functions from ActionScript).
  • Native file browsers.
  • Drag and drop.
  • Copy and paste from the clipboard.


I added forward and back buttons in Scout using the HTMLControl’s new history management functionality. Otherwise, it’s the same.


PixelPerfect is an example of a pure ActionScript 3 project (no Flex, no HTML, no JavaScript). I think it’s actually the most useful AIR application that I’ve written so far, and I find myself using it on a regular bases. It pops up transparent rulers on your screen which you can use to measure things in pixels. For this release, I added multi-window support (you can open multiple rulers at once), and now the rules are always on top of other windows so they don’t get lost. (I don’t have a help dialog yet, but you can also change the transparency using your mouse wheel, move rulers with your arrow keys, and resize them with shift+arrow keys.)

All the beta sample apps, along with their source code, are available here on Adobe Labs.