Best practice for setting styles in module based site?

I am interested in discussion/advice regarding the best Actionscript practice for setting styles via text formats and color variables for a module based site.

Currently I have text formats and color variables set up in my Main swf file. I would like to be able to use those same styles in numerous modules that will be loaded into the Main swf file.

Image shows swf relationship:

A) Is it possible to target the style variables in “main.swf” from “module2.swf”? I haven’t been successful in my attempts so far.

B) I could use an external Actionscript file, I think. But that would be an additional call to the server to load each module. Is that worth worrying about?

Thanks for your thoughts.

-pm

You can’t use an external AS file, because that gets included into the/each swf when you compile.
How did you try to apply a style from _level0 to one of the loaded swfs?

Joe,

In the module I tried:

textField_txt.setNewTextFormat(_parent.myTextFormat);

But I’m guessing there’s something wrong with that concept. Is that the direction I need to take?

-pm

try _level0 instead of _parent… not sure :wink:

no luck with _level0 so far, but thanks for the post. -pm