Workflow for developing a desktop AIR application
The basic workflow for developing an AIR application is the same as most traditional development models: code, compile, test, and, towards the end of the cycle, package into an installer file.
You can write the application code using Flash, Flex, and ActionScript and compile using Flash Professional, Flash Builder or the mxmlc and compc command-line compilers. You can also write the application code using HTML and JavaScript and skip the compilation step.
You can test desktop AIR applications with the ADL tool, which runs an application without requiring it to be packaged and installed first. Flash Professional, Flash Builder, Dreamweaver, and the Aptana IDE all integrate with the Flash debugger. You can also launch the debugger tool, FDB, manually when using ADL from the command line. ADL, itself, does display errors and trace statement output.
All AIR applications must be packaged into an install file. The cross-platform AIR file format is recommended unless:
-
You need to access platform-dependent APIs such as the NativeProcess class.
-
Your application uses native extensions.
SWF-based applications
-
Write the MXML or ActionScript code.
-
Create needed assets, such as icon bitmap files.
-
Create the application descriptor.
-
Compile ActionScript code.
-
Test the application.
-
Package and sign as an AIR file using the air target.
HTML-based applications
-
Write the HTML and JavaScript code.
-
Create needed assets, such as icon bitmap files.
-
Create the application descriptor.
-
Test the application.
-
Package and sign as an AIR file using the air target.
Creating native installers for AIR applications
-
Write the code (ActionScript or HTML and JavaScript).
-
Create needed assets, such as icon bitmap files.
-
Create the application descriptor, specifying the extendedDesktop profile.
-
Compile any ActionScript code.
-
Test the application.
-
Package the application on each target platform using the native target.
Creating AIR applications with a captive runtime bundle
-
Write the code (ActionScript or HTML and JavaScript).
-
Create needed assets, such as icon bitmap files.
-
Create the application descriptor, specifying the extendedDesktop profile.
-
Compile any ActionScript code.
-
Test the application.
-
Package the application on each target platform using the bundle target.
-
Create an install program using the bundle files. (The AIR SDK does not provide tools for creating such an installer, but many third-party toolkits are available.)