Here is an interesting problem that I am trying to understand and
hopefully solve. 

I basically have two projects, Player and PlayerLib.

PlayerLib is a flex library project and when compiled, creates a swc
of size 105k. Player depends on PlayerLib.

Three situations for compiling Player:

1) Compiling without flex framework as an RSL, creates player.swf of
size 480k.

2) Compiling with flex framework as an RSL still creates player.swf of
size 300k even though the dependent swc is only of size 105k.

3) Compiling with framework as an RSL and PlayerLib.swc as an RSL.
This reduces the player.swf size to about 60k but creates
PlayerLib.swf from PlayerLib.swc of size 460k from 105k.

Player.mxml has just an Application shell with a reference to one
component from PlayerLib.

What I do not understand is why the library swc file is blowing up the
player.swf by 200k when merged into the code, or creating a swf four
times the size of its own when converted into an RSL?

Am I missing something here? I would have expected player.swf to be
comparable to the PlayerLib.swc (~105k) as the flex framework is
anyway being converted into an RSL. It seems like I cannot reduce my
player.swf size to anything below 300k.

Does anyone know whats going on here? Is it the way swfs are created
from the dependent swc, that is increasing the size by 200k? 

I hope someone from the flash or flex team has an answer.

Reply via email to