# Access instances for custom class

**URL:** <https://forum.kirupa.com/t/access-instances-for-custom-class/274561>\
**Category:** Uncategorized\
**Created:** [October 31, 2008, 3:08pm UTC](https://forum.kirupa.com/t/access-instances-for-custom-class/274561 "2008-10-31T15:08:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kritikal](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kritikal/32/1699_2.png) [@kritikal](https://forum.kirupa.com/u/kritikal)\
**Post date:** [October 31, 2008, 3:08pm UTC](https://forum.kirupa.com/t/access-instances-for-custom-class/274561/1 "2008-10-31T15:08:05Z")

</div>

Hey guys,

say I have a shell that loads main.swf, the shell has a document class of Shell.as and the main.swf has a document class of TemplateBase.as now I need to write another class to animate and control main.swf, how can I access the movieclip instances inside of main.swf from my class (Content.as)

If I take out the shell and just pass the stage element from TemplateBase to Content everything works fine, but when the shell is used (I have to use it) then I get errors.

Any suggestions?
