Chapter 12. Rails on AIR (Adobe Integrated Runtime)

 

And Adobe is leaning hard on Flash, Adobe Integrated Runtime or AIR (formerly code-named Apollo), and Flex. My money is on Adobe simply because of those two invisible weapons, PDF and Flash.

“Robert X. Cringely”; I, Cringely; The Pulpit, June 29, 2007[1]

In this iteration, we’ll have a bit of fun. We’ll make pomodo be a Flex 3 AIR application, and we’ll add online/offline network detection (and change the UI accordingly). We won’t solve any hard problems (synchronizing local and remote data, and so on). The primary purpose of this iteration is to get you up and running with AIR and to get pomodo built and running as an AIR application in case you want to use it as a starting point for your own AIR projects. This isn’t an attempt to provide any kind of comprehensive AIR tutorial.

12.1. Converting pomodo to an AIR application

Flex Builder 3 already has support for AIR. In this iteration, I’ll assume you’re using Flex Builder 3. If you’ve already been using Flex Builder 3 for the rest of the book, you’ll create a new project out of the same files. The first thing we’ll do is delete our existing project (but keep the files) and then create a new AIR project in the same spot.

12.1.1. Deleting the old project

12.2. Refactoring event triggering

12.3. Online/Offline support

12.4. Summary

12.5. Exercises for the reader

12.6. Conclusion