Hi All,

Recently I had to refactor a video player component to be a standalone flash
application that is displayed in a popup browser window. I simply added a
new applicaton.mxml file in the root of my source-path, right beside my main
application.mxml. When I compile my video player standalone application and
I inspect the link report I see that the video player application has
compiled everything from the parent application, and the video player swf
size is the same as the main application.

My first suspect was that I the video player app had references/imports to
classes in the main application that had references to the main
application.mxml causing everything to get compiled into it. However, my
video player application only shares common reference to a Constants.as file
that does not import or reference anything from the main applicaiton.
Before, I start reference chasing, I wanted to clarify how mxmlc works with
compiling a source tree with multiple applications and shared resources.

Further reading the docs, I think what I understand, and need clarification
on, is that every class resource under the specified source-path is
automatically compiled and included in the resulting swf, regardless of
references, is this true?

And, to do what I want, I would have to use RSL's, is this correct?

Can anyone suggest a strategy to achive this, do I need to have separate src
trees, can I use some "exclude" compiler args or is RSL's the way.

Any help is much appreciated.

Thanks,

Greg

Reply via email to