[Flex] more than one application in a module

hi,

let's say I've got two MXML components extending Application in one FlexModule. The module settings tab, Flex Compiler Settings, allows me to define only one application entry point. Does it mean I cannot run more than one application in one flex module wthout changing the settings back and forth all the time?

cheers,
Jan

2 comments
Comment actions Permalink

Hi Jan!

Unfortunately this restriction is caused by the logic of Flex compiler.
Information about "entry point" is put in compiled *.swf file. That's
why it is compiler option but not run configuration option. So to have
ability to run 2 applications you need to have 2 *.swf files. There are
two ways to achieve this in IDEA:
1. Create 2 Flex modules: common sources + first application in 1st
module, second application class in 2nd module (add dependency on 1st
module).
Or slightly different way - 3 modules: one with common sources that are
compiled into *.swc library, and two dependant modules with application
classes.
2. Create one Java module with 2 Flex facets. Make Flex facets
configuration similar with the only difference in entry point classes
and output *.swf file names.

0
Comment actions Permalink

hi Alex,

thx for the reply. the solution is a bit fiddly, but hey, can't have everything

0

Please sign in to leave a comment.