Difference between revisions of "FlashDevelop"

From Noisebridge
Jump to navigation Jump to search
(init();)
 
Line 18: Line 18:
  
 
== Native Extensions (ANE) ==
 
== Native Extensions (ANE) ==
* Guide for configuring FlashDevelop projects
+
 
 +
* 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/
 
** http://fermmm.wordpress.com/2014/01/04/working-tutorial-to-install-air-native-extensions-in-flash-develop-4-windows-desktop-project/

Revision as of 19:07, 12 September 2014

Notes and tips on using FlashDevelop for AIR applications. With specifics on Arduino integration.

http://www.flashdevelop.org/

Current dev environment:

  • FlashDevelop 4.6.3.2
  • AIR SDK + ASC 2.0 14.0.0
  • Windows 7

Projects

WingScreen

IDE

Native Extensions (ANE)

  • 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