FlashDevelop

Table of Contents

Setting up

  • Create a new FlashDevelop project (AS3)

  • Set an SDK.

    • Personally, I downloaded the Flex SDK, extracted it, then pointed the SDK path to it (project pane > project settings > sdk tab > manage)
    • Getting a BadImageFormatException. Modify the java home path at C:\Users\Eddie\Adobe Flex SDK\bin\jvm.config on L27 to point to a 32 bit version, according to this
  • If you can't get any trace messages to appear, go to project settings > FlashViewer > External Player Path and set it to C:\Users\Eddie\Adobe Flex SDK\runtimes\player\11.1\win\FlashPlayerDebugger.exe

  • If that doesn't work (if it keeps opening up in Chrome), then go to Chrome, type in chrome:plugins, then expand the flash part, and disable Shockwave Flash for the for the one in Chrome.

SWC (shockwave component) files

  • SWC holds media assets. Use them to link into Flash and Flex projects:
    • In Flash Professional, output the .swc file into lib\myswc.swc
    • In FlashDevelop,

Compiling

Debugging

In the logs window, Click on the play button to enable tracking

  • Ctrl + Enter compiles
  • A document class must be set as the entry point - by default, this is Main.as. Otherwise in the project panel, right click on a file in the src directory and set it to the document class (icon changes to a file with a green arrow).

Classpaths

To add a classpath to the project, right click on the project, go to the classpaths tab and then add it from there.

Customising

The UI scheme can be set by going into Tools > UI Themes

Colourschemes

Code generation

  • See list of them by going to Tools > keyboard shortcuts.
  • Set the code generation to Ctrl+Shift+5
  • Set the code reformatter to Ctrl+Shift+6

Useful shortcuts

Useful link

  • Ctrl+q toggles line comment
  • Ctrl+Shift+q toggles block comment
  • Ctrl+2 opens up a new AS3 document
  • Ctrl+Shift+c copies the current line
  • wow! Press F4 to jump to a function defintion. Press Shift + F4 to jump back
  • Ctrl+F2 to set a bookmark, F2 to go to next bookmark, Shift+F2 to go to previous bookmark