Skip to content

FlashDevelop

Mark Knol edited this page Jun 24, 2013 · 15 revisions

For quickly running/debugging your projects in FlashDevelop follow these steps:

Open the wscript file and limit the platforms to just flash. This as the added benefit of having a much faster compile. Later you can simply re-add "html" if you want to test on mobile device.

platforms = ["flash"]

Open the project properties and go to the build settings and change the Pre-Build Command Line to these lines. Note: this also sets the flambe path to the local path.

taskkill /f /fi "imagename eq flashplayer*" /fi "status eq RUNNING"
haxelib dev flambe "$(ProjectDir)/source/libs/flambe/src"
cmd /c wafl --flashdevelop=$(BuildConfig) -j1 configure install 2>&1

And change the Post-Build Command Line to:

cmd /c copy /Y "$(ProjectDir)\deploy\web\targets\main-flash.swf" "$(ProjectDir)\deploy\web\"

Still in the project properties, go to the output tab and set Test Project to Open Document.... Then click Edit and enter this:

deploy/web/main-flash.swf

Now when you try to debug your application, it will just build the flash version, kill any remaining flashplayer instances (freeing up the FlashDevelop debugger to debug your new instance) and run the new file.

Note: This does copy the main-flash.swf file to the deploy/web folder (from deploy/web/targets).

Clone this wiki locally