When creating a module is there any way to exclude the Flex framework code. For 
example,
I have an application called MyApplication.mxml  that loads a module component 
called company.mxml . In order to reduce the size of the module I use the 
recommended approach from Adobe. First, I perform a link-report on 
MyApplication.mxml below and compile it into a SWF file called MyApplication.swf

mxmlc -link-report=report.xml MyApplication.mxml

Then I  compile the module called company.mxml and pass the linker report to 
the -load-externs  option.  The module compiles to SWF file called company.swf

mxmlc -load-externs=report.xml company.mxml


When I decompile the company.swf file it contains Flex components like 
TextInput Class, FormItemClass etc. which are in my company.mxml file. Why is 
this since the MyApplication.swf already contains the main adobe framework 
classes? Is there any way to remove all of the framework classes and let the 
module use the parent SWFs framework classes. Shouldn't the linker report 
prevent the module from having duplicate framework code?




Reply via email to