Programming an AIR Application
In this section, we’ll use ActionScript to tie all of our interface components together into a unified application. ActionScript is similar to JavaScript in some ways (they are both based on ECMAScript) but very different in other ways, since both are derived from different branches of the specification.
While we could write all of our ActionScript code using frame scripts, it is better to leverage the Object-Oriented Programming (OOP) features that are so prominent in the language and create a Document Class.
The ActionScript Programming Language
ActionScript is the programming language native to Flash Player and the .swf
file format. There are three versions of the language: ActionScript 1.0 and ActionScript 2.0 are very similar to one another and are executed by the same virtual machine (VM) within Flash Player and AIR, while ActionScript 3.0 is a completely new language that runs on its own dedicated VM.
Similar to JavaScript, ActionScript...