8 May 2012
8 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.
Figure 1: The Advanced ActionScript 3.0 Settings dialog showing the Browse to Native Extension (ANE) file option.
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.
Figure 2: Prebuilt native extensions are available at no charge from the Adobe AIR Developer Center.
For more information, see Using native extensions for Adobe AIR in the Adobe AIR help pages.
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License