Working tutorial to install AIR native extensions in Flash Develop 4

Installing a native extension in Flash Develop 4 on a Windows Desktop project is a pain in the ass, and the worst part is that the best tutorial you can get searching in google about this is incomplete and innacurate. I have a lot of experience working with native extensions so I decided to create my own tutorials on how to install them for Windows and for Mobile projects.

For a Windows and Mobile app:

1) Create a folder named “lib” in your root Flash Develop project and copy the .ane file into the lib folder created.
2) Without leaving the lib folder make a second copy of the .ane file, rename it with .zip extension, unzip it and then delete the zip (You must end up with an .ane file and a folder with the contents of the .ane file).
3) Inside the unziped folder open the following file: META-INF\ANE\extension.xml
4) Copy the content of the <id> tag, for example: “com.myBuisness.myApp.air.SuperLibrary”
5) Rename the unzipped folder with the tag content we copied before and add the .ane extension to it like it was a file and not a folder, so the folder name must be something like this: “com.myBuisness.myApp.air.SuperLibrary.ane
6) Go to Flash Develop and do right click on the ane file and then click on “add to library”
7) The Air project was created with some .bat files, you must modify them like this:

Packager.bat: replace the line that starts with “call adt” for:

call adt -package %OPTIONS% %SIGNING_OPTIONS% -target native %AIR_TARGET% %APP_XML% %FILE_OR_DIR% -extdir lib/

Run.bat: replace the line that starts with “adl “%APP_XML%” for:

adl “%APP_XML%” “%APP_DIR%” -extdir lib/

PackageApp.bat: only if your target is Windows replace the line “set AIR_TARGET=” for:

set AIR_TARGET=air/Setup.exe

8) Add the following to the application.xml:

<extensionID>PASTE HERE</extensionID>

9) Where it says PASTE HERE you must paste the content of the tag you copied in the step 4, so must look like this: <extensionID>com.myBuisness.myApp.air.SuperLibrary</extensionID>

10) If your target is Windows, without leaving application.xml modify (or add if doens’t exist) the  supportedProfiles tag with only extendedDesktop value like this:
Only extendedDesktop alone is supported, “extendedDesktop Desktop” doesn’t work.

And thats it, the painfull process is finished, the extension must work and when you execute PackageApp.bat you get a .exe, .apk or .ipa file with the native extension working. .air files cannot be created when using native extensions.
On Android target you must create a captative runtime version with the option 3 of the PackageApp.bat menu.

The other tutorials dind’t help very much to create the .exe file or where to get the ID of the app to rename the folder, so this is the best one for the moment.

mrdoob’s performance monitor ported to NME

If you come from AS3 you probably know what is this:

A performance monitor for FPS and virtual memory (MEM) now ported to Haxe + NME.
Download from here.


stage.addChild(new Stats());

SwfSpriteSheet 1.7 – Sprite sheets from Flash

I made an open source application to generate a PNG spritesheet file from a SWF.

In other words the application creates a PNG file that shows an image sequence, every image of this sequence is one frame of the swf.

This is usefull to allow pixel based game engines to run animations made with Flash.

Supports any kind of timeline structure or actionscript animation.



Screenshot 2



Download From Here


  • Are actionscript animations supported?
    • Yes
  • Supports 3D animation made with an engine that uses Stage3D?
    • Oh Yes!
  • The background of the generated PNG will be transparent?
    • Yes. The application converts  the backround color of the SWF into transparent pixels.
  • If I load a swf with big dimentions the application fails, why? why???????.
    • Because Flash doesn’t support big bitmaps. Anyway, if you need a sprite sheet so big, you are probably doing something wrong with your project.
  • What happens if I have only one frame in the main timeline and lot of movieClips with animation inside them?
    • No problem, the application handles that situation perfectly.
  • I need to synchronize my swf changes and send them to the png file automaticly.
    • There is not a feature to do that for the moment, will be included in future versions….. may be…

Version 1.7 new features:

  • Stage3D supported (not tested).
  • Dynamic resize, now you can see more of the preview area without the need of scrolling.


This is a PNG made with swf  spritesheet creator as an image editor show it:

Source code:

If you want to report a bug, request a feature, send your source code to be uploaded or anything, leave me a reply.