4 Replies Latest reply on Aug 18, 2008 2:24 AM by _bjorn_

    [FB3] Set default Application

    _bjorn_
      Hello,

      I'm wondering if it is possible in Flex Builder 3 to set an application (mxml) not living in the source root as the default application for the project? When right-clicking an application mxml file the menu item is greyed out for any application that doesn't reside in the source root.

      There is no problem creating a build file that allows for this so I'm wondering what I'm doing wrong...

      Example structure;

      src/com/acme/abc/apps/Main.mxml
      src/com/acme/abc/utils/...
      src/com/acme/abc/net/...

      Example build script (extract)

      <mxmlc file="${basedir}/src/com/acme/abc/apps/Main.mxml"
      keep-generated-actionscript="false"
      output="${basedir}/bin/abc/Main.swf"
      incremental="false"
      >
      <load-config filename="${FLEX_HOME}/frameworks/flex-config.xml"/>
      <source-path path-element="${FLEX_HOME}/frameworks"/>
      <source-path path-element="${basedir}/src"/>
      </mxmlc>

      One reason for not having the application file(s) in the source root is that we have source control setup, basically a module "per package". This is very convenient for Java development and module maintenance and we would like to maintain this for flex development as well.

      Thanks for your input!

      Cheers,
      Bjorn