You can export an optimized release-quality version (non-debug SWF or AIR file) of your application using the Export Release Build Wizard. Required assets are copied to a folder separate from the debug version with or without source code ("View Source" in the application context menu). A .zip archive is also created automatically. You access the wizard from the Project menu or on the toolbar.
For AIR projects, a production build creates a digitally signed AIR file, which the user must install before running the application. This process is similar to creating an installer .exe for a typical native application. Optionally you can create an unsigned intermediate package which you can sign later before release. Before you begin the Export Release Build, you must decide how to digitally sign your AIR application:
Digital certificates provided by VeriSign and Thawte give users some assurance as to your identity as a publisher and verification that the installation file has not been altered since you signed it. Self-signed digital certificates serve the same purpose but they are not validated by a third-party.
You also have the option of packaging your AIR application without a digital signature by creating an intermediate AIR file (.airi). An intermediate AIR file is not valid in that it cannot be installed. It is instead used for testing (by the developer) and can be launched using the AIR ADT command line tool. This capability is provided because in some development environments signing is handled by a particular developer or team, which ensures an additional level of security.
For more information about Adobe AIR files, see the Adobe AIR Developer's Guide.
Digitally signing your AIR applications
If you have multiple projects and applications open in Flex Builder, select the AIR project you want to package.
Click Choose Source Files to select individual files (all source files are selected by default).
Specify the digital certificate that represents the application publisher's identity. To generate a self-signed certificate, click Create to enter data in required fields.
If you want to export a file that will be signed later, you can export an intermediate AIRI file.
The debug version of your application contains debugging information and is used when you debug your application. The Export Release Build version does not include the additional debugging information and is therefore smaller in size than the debug version. An HTML wrapper file contains a link to the application SWF file and is used to run or debug your application in a web browser.
In a standard Flex application, a typical output folder resembles the following example:
You can run or debug your Flex and ActionScript applications either in a web browser or in the stand-alone Flash Player. You control how your applications are run or debugged by modifying the project's launch configuration (see Running your applications). For more information about running and debugging your applications, see Running and Debugging Applications.
When you use LiveCycle Data Services ES you create Flex applications that leverage the Flex server technologies. When building LiveCycle Data Services ES applications, you have the option of compiling the output files locally using Flex Builder or on the server when the application is first accessed.