3
votes

I have a project created with FlashBuilder 4.6 as "Actionscript Mobile Project" targetting iOS.

I want to be able to compile the same project also for desktop. How can I change the project such that beside the IPA file also a desktop AIR file is created - or how can i switch quickly between the two?

3

3 Answers

2
votes

Well, you CAN deploy to desktop from within an Actionscript mobile project, but you only get limited options:

Go to "Export Release Build"->"Export as" select "Signed AIR package for...desktop".

That's it. Just did it and am somewhat happy with it.

1
votes

I know this will not really answer the question, but actually it does not look possible to do this.

The best way I found to achieve this goal (1 code -> destop + mobile) was to make 2 projects 1 for mobile, 1 for desktop, sharing the same single library full of my app classes + sharing the assets, etc... The only thing that cannot be shared is the descriptor xml file + base class file (though setting up those files is a one-time duty).

A good illustration of how things work can be found on Chris Campbell reversi project page : checkout the last screenshot in his post right here

I hope this helps...

0
votes

You can't deploy to both desktop and mobile devices from the same Flash Builder project.

One option is to move your shared code into a library project, and then create one project for mobile devices and one for desktops, each relying on the shared code in your library.

Another option is to compile using the command line tools.