Compile multi-flex applications contained in one project with Flex Builder

applications-128x128 One day, i want to compile my business app with TestSuiteRunner (from FlexUnit) app at one time using Flex Builder, but i never do this before. Flex Builder can not set two application once. But, it can set modules to be compiled.

1. Add a new mxml application into one existed app and named it as what you want. Mine is TestApp.mxml.

compile-multi-flex-applications-contained-in-one-project-with-flex-builder-img-1

2. Use the right key of your mouse to click your application listed in Flex Navigator, then open the Properties for yourappname dialog.

compile-multi-flex-applications-contained-in-one-project-with-flex-builder-img-2

compile-multi-flex-applications-contained-in-one-project-with-flex-builder-img-3

3. Select Flex Modules panel, “add” TestApp.mxml as a module. Do not “browse” to add TestApp.xml, you can not find it in the Select Module dialog, just edit the Source path like this “src/TestApp.mxml”. Pay attention here : you should select “Do not optimize (module can be loaded by multiple applications)” instead of the default option in order to generate a standalone SWF file.

compile-multi-flex-applications-contained-in-one-project-with-flex-builder-img-4

4.Compile your application using Build Project or Builder All as you wish. Then you can find two, or more if any, SWF files displayed in bin-debug directory.

compile-multi-flex-applications-contained-in-one-project-with-flex-builder-img-5

compile-multi-flex-applications-contained-in-one-project-with-flex-builder-img-6

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • DZone
  • Reddit
  • Technorati
  • StumbleUpon
  • Twitter
RSS Enjoy this Post? Subscribe to Ntt.cc

RSS Feed   RSS Feed     Email Feed  Email Feed Follow us Follow us
You can leave a response, or trackback from your own site.

2 Responses to “Compile multi-flex applications contained in one project with Flex Builder”

  1. 用Flex Builder在一个Flex项目中编译多个Application…

    One day, i want to compile my business app with TestSuiteRunner
    (from FlexUnit) app at one time using Flex Builder, but i never do this
    before. Flex Builder can not set two application once. But, it can set
    modules to be compiled.
    1. Add a new mxml…

  2. adriano says:

    thank you, exactly what i needed

Leave a Reply