0
votes

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?

3
Have you tried cleaning your project via Project > Clean, then rebuilding?Pimgd
yes, tried that, thanks - EDIT... actually, after deleting the SWF file then pressing Project > Clean it has reinstated it freshly. Maybe the problem is caused by SVN then...ness-EE

3 Answers

0
votes

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.

0
votes

Reposting my comment as answer, since it worked (kinda).

In the menubar, go to project, then clean.

This is also the method adobe describes for making a clean build.

0
votes

I was facing similar problem. In my case .flexLipProperties file was broken and the class I was editing was not included in project build.

You can force FB to include your file by adding it to Flex build path.

If your project is flex library project.

  1. Clean your project
  2. Open project properties -> Flex library build path -> select all target classes
  3. Build target project

If your project is flex project.

  1. Open project properties -> Flex Modules -> Add target module if it's missing from the list
  2. Build target project