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?
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.
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...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With