Importing a Flex 3 AIR project into Flash Builder 4
I had some issues over the weekend trying to import an Flex Builder 3 AIR project into Flash Builder 4. This post gives a good description of how it is supposed to work, and I assume that it does work for Flex web projects, but it didn’t work for me with an AIR project. Every time I imported the AIR project, Flash Builder 4 interpreted it as a Flex Web project, so of course it didn’t actually build. I was migrating from an OSX Flex Builder 3 to a Windows Flash Builder 4, so that may also have been an issue, I’m not sure.
Anyway, the way I finally got it working was to create a new AIR Desktop project in Flash Builder 4 and copy the entire src folder over from the Flex Builder 3 project. The only thing that you can’t copy is the app.xml file, as it seems to be in a slightly different format in FB4, and the project won’t build.
SVN
This causes some problems if you want to continue a development effort using SVN, and other members of your team are using Flex Builder 3, because the actual project can’t be shared between the two versions of the IDE. However, the src folder can be shared without issue, so if you check just that folder out into your new Flash Builder 4 Project shell, and over-write the app.xml file you’ll be good to go, just don’t accidentally commit the app.xml file to the repository, or you’ll break the build for everybody else.






