Flexible android action script native extension

I have developed my own android extension in flex and I have a problem with this extension. I packed ane file, I added flex to android project and it compiles correctly, but at runtime I have an error that says my script extension class was not found.

VerifyError: Error # 1014: Could not find class myClass.

+3


source to share


3 answers


I found the answer after a long painstaking 1 week of trying and failing. The problem is that when the action library project script is compiled to .swf, the packages in this swf file are library.swf. This library.swf file needs to be copied to the directory containing the Android native code (.jar). Then when you package the .ane file, that library.swf file is also a package.



+1


source


It is difficult to say about this description. I've made some custom extensions if possible - you can provide some code for your jar file and script actions of intermediate classes.

You've read these articles and examples, they may help you:



http://www.adobe.com/devnet/air/native-extensions-for-air.html

http://www.adobe.com/devnet/air/articles/building-ane-ios-android-pt4.html

0


source


Have you confirmed that ANE comes bundled with your application? You need to add it to your project and to test its variant.

Check this out for a quick guide:

0


source







All Articles