Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Adobe AIR Development

Reply
Developer
nicklas
Posts: 150
Registered: ‎02-01-2009
My Device: Torch, PlayBook and Dev Alpha

AirSDK & Native Extension with Flash Develop

Hi,

 

I try to do the sample :

http://supportforums.blackberry.com/t5/Tablet-OS-SDK-for-Adobe-AIR/Creating-Air-Native-Extensions-fo...

but with Flash Develop instead of Flash Builder.

 

I have built with NDK a library with its wrapper for AirSDK integration.

This part is OK.

 

Now I want to build the ActionScript library using this "C/C++" library with Flash Develop.

 

But I don't know how to do it :smileysad:

 

From Flash Develop, I have built the swf file ; but not the swc file !

 

The next step is to get the file library.swf that is inside the NativeAS3.swc file, which is in the bin folder of your project. The SWC file is actually a zip file, but with different extension. You can use any Zip utility to uncompress its contents. You might have to rename the file, but it depends on the utility you’re using.

 

After un-compressing the file, you should see the files library.swf and catalog.xml.   Copy and paste them into the package folder in your Flash Builder NativeAS3 project.

 

So how can I do this step ?

 

Regards,

 

Nicolas

 

Developer
UberschallSamsara
Posts: 1,029
Registered: ‎12-29-2010
My Device: PlayBook, Z10 LE, Dev Alpha C

Re: AirSDK & Native Extension with Flash Develop

[ Edited ]

I haven't done this in FlashDevelop, nor have I used the plugin described in the below post, but it's

something I'll want to do at some point.  I found and bookmarked these links for later reference.

If you have any luck with this open source FD plugin mentioned, please make a note of it here in this thread.

 

 

http://www.flashdevelop.org/community/viewtopic.php?t=2987

http://sourceforge.net/projects/exportswc/

http://blog.log2e.com/2008/05/07/creating-a-swc-component-in-flashdevelop/

 

note that you can always use commandline tools to export a swc - see the compc command in the

bin dir of your AIR SDK and check out the help output from e.g. 

 

compc -help -list

 

and here is some compc documentation from Adobe:

 

http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7fd2.html