I've developed a flex app with a lot of custom components.
Now I want to create a desktop version of the same using the same
exact same components. Is it possible that I add an mxml
application, make it a WindowedApplication and compile it to
produce an AIR app? Or are there any workarounds to accomplish
Easiest way I have found is to complete your Flex Web app.
Then create a new Flex AIR app and then copy code from your working
Flex Web app over.
Yes, you end up with two complete sets of code, but if that
is going to become an issue with keeping both versions up to date
you can simply use one set of source.
To do this, create two projects, one Web, one Air. Then you
can create a third folder (not project) that contains all the
In each of your projects, simply import the code you want to
use using the project options.
No, not ideal, but does work. Would be nice to see Flex
Builder changed so you can have rooted projects.
E.g. A project called "MyBigApplication" that isn't targetted
at any platform. Within this you could then produce sub-projects
that target a particular platform, be it web or air but share code.
Maybe in the next version.....