Change project from Flex to AIR
Tuesday 6 May 2008 @ 6:03 pm

When you started with a Flex project for the browser and you decide to switch to AIR or vice versa you have to change the Flex Builder project settings.

In the application MXML you have to switch the root node from Application to WindowedApplication

In the .actionScriptProperties you have to change useApolloConfig=”true/false”.

For AIR projects the .project file needs the apollonature meaning <nature>com.adobe.flexbuilder.apollo.apollonature</nature> as the first of the three natures (before flexnature and actionscriptnature). Sometimes I had a refresh problem when I opened the project settings (every entry showed up twice) after editing these files so better close and re-open the project, re-build the project and the switch should be done.

- Posted in AIR, Eclipse, Flex by Sönke  





Leave a Reply