Setup AIR

Adobe AIR is a cross-platform framework used by a wide range of applications and games on desktop and mobile. AIR can run on Windows, macOS, Linux, iOS, and Android. While AIR was originally created by Adobe, it is currently maintained with active development of new features by HARMAN. See The future of Adobe AIR and HARMAN’s AIR SDK Website for more details.

Automatic Install

There is no automatic setup available for Adobe AIR.

Manual Install

In order to build applications using Adobe AIR, you must have the AIR SDK installed.

Download the Adobe AIR SDK from HARMAN, and extract it on your system.

Next, open a command-prompt or terminal and run the following command (using the path to your AIR SDK):

lime config AIR_SDK path/to/air/sdk

Build & Run

Run lime test air to compile and run the Adobe AIR application using the AIR Debug Launcher (ADL).

Using SWC libraries

To use a .swc library with Haxe that was compiled from ActionScript, add Haxe’s -swf-lib command line option. For instance, you can add it to your project.xml file using the <haxeflag/> element.

<haxeflag name="-swf-lib" value="path/to/example.swc"/>

Using AIR Native Extensions

To use .ane native extension files, add each one to your project’s native dependencies. For instance, you can add it to your project.xml file using the <dependency/> element.

<dependency name="com.example.MyNativeExtension" path="path/to/com.example.MyNativeExtension.ane" if="air"/>

The name attribute is the native extension’s ID. The path attribute is the relative path to the .ane file.

Forums

If you encounter any problems when setting up Lime for AIR, please visit the forums.


Improve this page