7 May 2012
AIR 3 introduces Native Extension libraries allowing developers to create ActionScript libraries implemented with native code. This feature opens up the ability to access device specific functionality such as gyroscope or platform specific functionality such as in-app purchases and iAds on iOS.
Native extensions are a combination of ActionScript classes and native code. Native extension developers package the native extension into an ANE file for distribution. The ANE file is added to a Flash project the same way a SWC library is added using the Advanced ActionScript 3.0 Settings dialog box (see Figure 1). Once an ANE is added to a project, the developer uses the ActionScript classes to implement the native extension while gaining the coding benefits of code hinting and code completion.
Prebuilt native extensions can be downloaded at no charge (see Figure 2). New extensions are added as new devices and capabilities become available in the market.
For more information, see Using native extensions for Adobe AIR in the Adobe AIR help pages.