PermanentGuest
PermanentGuest

Reputation: 5331

Creating extensions for Adobe air

I'm creating an Java extension for the Adobe AIR android app. I'm very new to Adobe flash. I don't have the flash builder, but only flashdevelop IDE. I follow the instructions from Adobe article to create extensions. The tutorial is very helpful, but unfortunately this is based on Flash Builder.

Step 1 : Create the jar file with the java code -> I did this.

Step 2 : Create an SWC file which is a wrapper to the jar file created in step 1. This is where I'm stuck. I tried to use the ExportSWC4.2 component, but this was not successful. Then now I'm trying to use the compc utility coming with the SDK. In both of these methods, I'm stuck with the problem that I don't know how to include the jar file created in step 1 in the build of the swc using compc. So, I always get the error in my extension as3 file from the wrapper project about the missing java package/extensions.

My current build command is something like :

compc -source-path . -include-classes ....  -output ....

So my question is : How can I indicate the compc compiler that it should refer my .jar file? Or is there a better way to do this?

Upvotes: 0

Views: 119

Answers (1)

BotMaster
BotMaster

Reputation: 2223

You don't include a .jar in the build of the swc at all. The swc is only one part of the required components for creating a ANE. Once the swc is created you'll need to extract the library.swf from it. That library.swf needs to be included for each target platform (usually in its own folder) specified by the extension.xml.

Upvotes: 1

Related Questions