# Best practice for setting styles in module based site?

**URL:** https://forum.kirupa.com/t/best-practice-for-setting-styles-in-module-based-site/104008
**Category:** Uncategorized
**Created:** [March 11, 2004, 3:24pm UTC](https://forum.kirupa.com/t/best-practice-for-setting-styles-in-module-based-site/104008 "2004-03-11T15:24:52Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jugglerpm](https://avatars.discourse-cdn.com/v4/letter/j/87869e/32.png) [@jugglerpm](https://forum.kirupa.com/u/jugglerpm)
#### Post date: [March 11, 2004, 3:24pm UTC](https://forum.kirupa.com/t/best-practice-for-setting-styles-in-module-based-site/104008/1 "2004-03-11T15:24:52Z")

</div>

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:

![](http://www.rit.edu/~gpm9103/thesis/module_formatting.gif)

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
