That error indicates you aren't correctly packaging the ANE with your application.
With CS5.5 you'll need to package your application from the command line in order to correctly package ANEs. CS5.5 didn't include the ability to package applications using ANEs.
Firstly make sure you have added the extension ID to your application descriptor:
<extensions>
<extension>com.distriqt.Compass</extension>
</extensions>
To add the extension:
- Change the filename extension of the ANE file from .ane to .swc. This step is necessary so that Flash Professional can find the file
- Select File > ActionScript Settings on your FLA file
- Select the
Library Path
tab in the Advanced ActionScript 3.0 Settings dialog box
- Select the Browse To SWC File button
- Browse to the SWC file and select Open. The SWC file now appears in the Library Path tab in the Advanced ActionScript 3.0 Settings dialog box
- With the SWC file selected, select the button Select Linkage Options For A Library (this looks like a small i in a circle above the panel).
- In the Library Path Item Options dialog box, change the Link Type to External.
Next you’ll need to open up a command line in the directory of your built application. The directory should contain:
- application swf:
myApp.swf
- application descriptor:
myApp-app.xml
- any required files such as icons, Default.png
- the ANE(s) (in a subdirectory we’ll assume
extensionsDir
in the following)
The details on this command is dependent on the application you are developing and the platform you are targeting. You should review the documentation at the following url to determine the details of what the command should contain for your environment.
http://help.adobe.com/en_US/air/build/WS597e5dadb9cc1e0253f7d2fc1311b491071-8000.html
For example the following command will create an APK for Android:
adt -package
-target apk
-storetype pkcs12 -keystore YOUR_SIGNING_KEY.p12
myApp.apk
myApp-app.xml
myApp.swf icons
-extdir extensionsDir
For more information see the tutorial here: https://airnativeextensions.com/knowledgebase/tutorial/1