To develop Adobe AIR applications with Flex, you have the following options:
Each of the command-line tools you use to create an Adobe AIR application calls the corresponding tool used to build Flex applications:
The only difference between the Flex and the AIR versions of the utilities is that the AIR versions load the configuration options from the air-config.xml file instead of the flex-config.xml file.
The Flex SDK tools and their command-line options are fully described in Building and Deploying Flex 3 Applications (http://www.adobe.com/go/learn_flex3_building) in the Flex 3 documentation library. The Flex SDK tools are described here at a basic level to help you get started and to point out the differences between building Flex applications and building AIR applications.
Building AIR applications with the command-line tools requires that Java is installed on your computer. You can use the Java virtual machine from either the JRE or the JDK (version 1.4.2 or newer). The Java JRE and JDK are available at http://java.sun.com.
The Flex 3 SDK provides you with the AIR API and command-line tools that you use to package, compile, and debug your AIR applications.
You typically specify compilation options both on the command line and with one or more configuration files. The global Flex SDK configuration file contains default values that are used whenever the compilers are run. You can edit this file to suit your own development environment. There are two global Flex configuration files located in the frameworks directory of your Flex 3 SDK installation. The air-config.xml file is used when you run the amxmlc compiler. This file configures the compiler for AIR by including the AIR libraries. The flex-config.xml file is used when you run mxmlc.
The default configuration values are suitable for discovering how Flex and AIR work, but when you embark on a full-scale project examine the available options more closely. You can supply project-specific values for the compiler options in a local configuration file that takes precedence over the global values for a given project. For a full list of the compilation options and for the syntax of the configuration files, see Flex SDK Configuration in Building and Deploying Flex 3 Applications (http://www.adobe.com/go/learn_flex3_building) in the Flex 3 documentation library.
AIR supports debugging directly, so you do not need a debug version of the runtime (as you would with Flash Player). To conduct command-line debugging, you use the Flash Debugger and the AIR Debug Launcher.
The Flash Debugger is distributed in the Flex 3 SDK directory. The native versions, for example fdb.exe on Windows, are in the bin subdirectory. The Java version is in the lib subdirectory. The AIR Debug Launcher (ADL), adl.exe, is in the bin directory of your Flex SDK installation. (There is no separate Java version).
The AIR Developer Tool (ADT), which packages your application into an installable AIR file, is a Java program. No setup is required other than setting up your environment so that you can conveniently run the utility.
The SDK includes a script file in the SDK bin directory for executing ADT as a command. You can also run ADT as a Java program, which could be convenient when using build tools such as Apache Ant.