Add an ANE using Flash Builder

By specifying ActionScript native extensions in your project, you can access native platform features such as the sensors and network API. To specify ANE using Adobe Flash Builder, follow these steps:

  1. In Flash Builder, on the Package Explorer menu, right-click on your ActionScript Mobile Project.
  2. Select Properties.
  3. In the Properties for project name window, click on ActionScript Build Path.
  4. In the Native Extensions tab, you can specify the ANE for your application.
    Operating System Default location of the ActionScript native extensions
    Windows (x64) \Program Files (x86)\Research In Motion\blackberry-tablet-sdk-<version>\frameworks\libs\qnx\ane
    Windows (x86) \Program Files\Research In Motion\blackberry-tablet-sdk-<version>\frameworks\libs\qnx\ane
    Mac /Applications/SDKs/Research In Motion/blackberry-tablet-sdk-<version>/ frameworks/libs/qnx/ane

    • To add a specific ANE:
      1. Click Add ANE.
      2. In the Add ANE window, specify the location of the ANE.
      3. Click Ok.
    • To add a group of ANE:
      1. Click Add Folder.
      2. In the Add ANEs window, specify the location of the ANE.
      3. Click Ok.
  5. Click Ok.

Once you have added the ANE to your application, you need to configure the build packaging settings.

Configure the build packaging settings

  1. In the Package Explorer view, right-click your ActionScript mobile project.
  2. Click Properties.
  3. Expand ActionScript Build Packaging.
  4. Click BlackBerry.
  5. On the Native Extensions tab, select the Package checkbox for all the ANEs you will use in your application.

  6. Click Ok.
  7. Save your project.