[flex] Why the resource module size is so big?

iamzealotwang 2009-09-16

i try to make a resource module so that i can loading the resource at run time.

 

 

what i do is

 

 

1` make a lang.properties (1kb) only one key-value in it  just for test

 

2` run mxmlc -locale=en_US -source-path=locale/{locale} -include-resource-bundles=lang -output en_US_resources.swf

 

 

the en_US_resources.swf  i got is 18kb

 

why is the file so big?? 

 

is there some way to reduce the file size?

 

thanks

chaimzane 2009-10-10
the Module depend on some flex framework codes,you should use ModuleBase class to reduce the size.
iamzealotwang 2009-10-12
Thanks a lot , when i have time will take a look at the ModuleBase.
For now i just use my own way (@link http://iamzealotwang.iteye.com/blog/472413) to deal with the multi-language.

Any way, thanks a lot 
Global site tag (gtag.js) - Google Analytics