Search code examples
actionscript-3flash-builder

Flash Builder 4.7 SWF not updating upon compilation. How to force compile a brand new SWF?


I can no longer use Flash Builder as my code changes are not picked up and packaged into a new SWF. I am debugging with a stand alone player.

The problem happens if the debugger encounters an error. Commenting out the offending line will produce the same error, meaning that upon compilation the SWF wasn't updated with the new code.

Removing the SWF so that it builds from fresh does not work. The error in this case says that the SWF could not be found.

I have updated to use the newest versions on the AIR SDK (4.0) and stand alone Flash Player (14.0) and Flash Builder is using them successfully.

Is there a way to force the creation of a brand new SWF file?


Solution

  • I have that problem too especially when linking to external project/source code. FB gets confused and upon error does not refresh anything anymore.

    You can force FB to refresh that way:

    • close the debugger if the app is still running.
    • delete the swf in bin-debug
    • refresh the project then do a "clean"
    • a new swf should be created and FB should have refreshed itself.

    I still haven't found a way to avoid this problem when using external source code.