I've got a module, MyModule
which requires a large library:
<mx:Module>
<mx:Script><![CDATA[
import com.huge.library.AwesomeThing;
var myThing:* = new AwesomeThing()
]]></mx:Script>
...
</mx:Module>
And that large library isn't referenced from my main application, except through MyModule
:
<mx:Application>
<MyModule />
</mx:Application>
But when I build with Flex Builder, com.huge.library
is included in the application swf instead of the module swf, as I would expect.
So, is there any way I can trick Flex Builder into putting com.huge.library
into MyModule.swf
instead of MyApp.swf
?