views:

1024

answers:

2

This seems like a bug in Flex Builder, however the builder no longer creates the .swf file for any projects (I'm building an AIR app). It did previously however, for some reason it errors out with the message "Initial content not found" (referring to looking for the swf in bin-debug, and not being able to find it).

There are many proposed solutions, such as change the version in the application descriptor from 1.0 to 1.5, however none of these work. I've even imported it into a new project and the swf file is not generated.

Is there anyway to force Flex Builder to generate the swf file?

Thanks.

A: 

I have the same issue...

  • you could create a new project (it has something to do with settings)
  • you can create a swf with the amxmlc tool from command line (I just unzipped an earlier air project and used that swf to place in my debug folder) The problem with that is, there's no debugging information but your application will run
  • more info soon hopefully here: http://bugs.adobe.com/jira/browse/FB-21758

grtz

UPDATE: just created a new project and copied the source in the new file --> same problem

Vic
A: 

I actually found this was more of a UI problem, where it is not obvious that there is a problem with the code.

If there are errors in the 'Problems' window (red crosses as opposed to exclamation marks), it will run the old version, not the new version... So while it appears that it is compiling and running the new version, it isn't. Alternatively, as found, it will refuse to rebuild the swf file.

Check the problems window (I think View > Problems in flex builder) and see if there are any errors. I also thought it was caching, but finding the problems window solved my issues.

Ian

related questions