Editing FlashDevelop

Jump to navigation Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 18: Line 18:


== Native Extensions (ANE) ==
== Native Extensions (ANE) ==
 
* Guide for configuring FlashDevelop projects
=== Initial Project Configuration ===
** http://fermmm.wordpress.com/2014/01/04/working-tutorial-to-install-air-native-extensions-in-flash-develop-4-windows-desktop-project/
* Create/Open ''AIR Project'' in FlashDevelop
* Add ''lib'' directory to root of project files
* Copy ''.ane'' file to ''lib''
* Unzip/Extract ''.ane'' into a folder
* Open ''extensions.xml'' in the extracted files at ''META-INF/ANE/''
* Locate and copy the contents of the ''<id>'' tag
* Rename the extracted folder to the id value appended with ''.ane''
** For ''ArduinoConnector'' it will be ''com.quetwo.Arduino.ArduinoConnector.ane''
* In the ''Project'' panel of FlashDevelop, right-click the ''.ane'' file and ''Add To Library''
* Open ''application.xml'' for editing:
** Add ''extensionID'' with the following (using ID of ''.ane''):
*** <extensions>
***   <extensionID>com.quetwo.Arduino.ArduinoConnector</extensionID>
*** </extensions>
** Specify ''extendedDesktop''
*** <supportedProfiles>extendedDesktop</supportedProfiles>
* Replace ''call adt...'' line in ''bat/Packager.bat'' with
** call adt -package %OPTIONS% %SIGNING_OPTIONS% -target native %AIR_TARGET% %APP_XML% %FILE_OR_DIR% -extdir lib/
* Replace ''adl...'' line in ''Run.bat'' with
** adl "%APP_XML%" "%APP_DIR%" -extdir lib/
* Replace ''set AIR_TARGET...'' line in ''PackageApp.bat'' with
** set AIR_TARGET=air/Setup.exe
 
 
Reference Guide used for configuring FlashDevelop projects
* http://fermmm.wordpress.com/2014/01/04/working-tutorial-to-install-air-native-extensions-in-flash-develop-4-windows-desktop-project/
 
 
=== ArduinoConnector.ane Issues ===
''pthreadGC2.dll'' may not be properly referenced or included when testing or installing.
 
A work around for this is to copy ''pthreadGC2.dll'' in to the root directory of your installation, along with ''libSerialANE.dll'' and ''libgcc_s_dw2-1.dll''
 
For testing in the IDE these files need also be added to the ''/bin'' folder of the compiling SDK, where ''adl.exe'' is located.
Please note that all contributions to Noisebridge are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see Noisebridge:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel Editing help (opens in new window)