Flex and AIR project in one

Wednesday, July 18th, 2007

Maybe it’s easy, I don’t know, but is it possible to have just 1 project in Flex 3, and have possibility to make Flex site (web based) and AIR application (desktop based) without making 2 same projects??? Of course, there will be no special stuff for AIR, it will be just desktop version of Web RIA.

Thanks for your answers

AddThis Feed Button

This is some text prior to the author information. You can change this text from the admin section of WP-Gravatar  I'm living in Bratislava, Slovakia. I'm Senior Flex, AIR Developer for my own company Flexets. Read more from this author


tagged under:

ABOUT THIS AUTHOR

I'm living in Bratislava, Slovakia. I'm Senior Flex, AIR Developer for my own company Flexets.

Get a Trackback link

7 Comments


  1. Tony Fendall
    Visit Site
    July 18th, 2007

    I don’t have a copy of FB3 here to try this on, but you could try setting the builder for the project.

    Project>Properties>Builders

    It does feel like a little bit of a hack though


  2. Tink
    Visit Site
    July 19th, 2007

    Your asking without even making any effort to try?

    Just create 2 projects, 1 Flex with a root Application tag and 1 AIR with a root WindowedApplication.

    Then create a library project for all you code and share it between the 2 projects above.

    This way you can also add the exra functionality to your AIR project.


  3. Maz
    Visit Site
    July 19th, 2007

    What you can do is 3 projects :
    - one that is shared (Flex3 library)
    - an AIR project referencing the first
    - a Flex “”

    {Maz}


  4. Administrator
    Visit Site
    July 19th, 2007

    Tink > Of course I was trying ;)

    But I want make just 1 project, not 2 projects. I thought of something like 1 project and 2 applications, 1 for Flex () and 1 for AIR ()


  5. Tink
    Visit Site
    July 19th, 2007

    “But I want make just 1 project, not 2 projects. I thought of something like 1 project and 2 applications, 1 for Flex () and 1 for AIR ()”

    I don’t see what the problem would be with what both I and Maz suggest above.

    You just edit all the code in your library project. That a lot easier than changing the root tag and updating compiler settings everytime you want to switch from one to the other.


  6. Josh
    Visit Site
    July 20th, 2007

    I’m pretty sure you can do it in one project. You can have more than one Application file in a project. Make one a WindowedApplication and the other a regular Application. The regular Application will output to SWF and the WindowedApplication will turn into an AIR app.


  7. Amy
    Visit Site
    August 2nd, 2007

    I don’t think that changing the application tag actually changes how it compiles. I’ve changed my AIR project tag to Application to get alpha transparency, and it still compiles as AIR.

Live Preview

Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="">

This site is using OpenAvatar based on
Images is enhanced with WordPress Lightbox JS by Zeo
Clicky Web Analytics