# AS3 Design Logic Help

**URL:** <https://forum.kirupa.com/t/as3-design-logic-help/253775>\
**Category:** flash\
**Created:** [March 5, 2008, 12:31am UTC](https://forum.kirupa.com/t/as3-design-logic-help/253775 "2008-03-05T00:31:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![trilec](https://avatars.discourse-cdn.com/v4/letter/t/6de8d8/32.png) [@trilec](https://forum.kirupa.com/u/trilec)\
**Post date:** [March 5, 2008, 12:31am UTC](https://forum.kirupa.com/t/as3-design-logic-help/253775/1 "2008-03-05T00:31:03Z")

</div>

Hi All, need some help from the pros…  
Was not sure how to approach this problem…  
Goal:

\*\*. Load Main swf file  
. Loaded App creates a StageManagerClass();  
. StageManagerClass calls loader for library.swf (contains style interface elements)  
. StageManagerClass creates other classes that use the library.swf elements  
for its styles and adds those classes() to the stage or in this case the stageManagerClass.  
\*\*  
Questions is,  
[LIST]  
[_] **What is the best way to access these loaded library clips from other class’s**  
[_] **is there a better design idea out there or example where this is used**  
[\*]Is it better to create a var on the stage so all new classes have access to it?[/LIST] My Concept for how this might work something like:

```auto

var stageControl = new stageManagerClass();
  stageControl.loadAssets("library.swf");
  stageControl.loader.addEventListener("COMPLETE", onLoaded);

public function onLoaded(evt : Event) : void{
  trace("loaded!");
  var clip:MovieClip = loader.getMovieAsset("mySymbolClipInMovie");
}

```

thanks for any suggestions

c
