# Talking to external SWF Doc class

**URL:** <https://forum.kirupa.com/t/talking-to-external-swf-doc-class/290240>\
**Category:** flash\
**Created:** [June 11, 2009, 4:36pm UTC](https://forum.kirupa.com/t/talking-to-external-swf-doc-class/290240 "2009-06-11T16:36:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![riveroaks](https://avatars.discourse-cdn.com/v4/letter/r/90db22/32.png) [@riveroaks](https://forum.kirupa.com/u/riveroaks)\
**Post date:** [June 11, 2009, 4:36pm UTC](https://forum.kirupa.com/t/talking-to-external-swf-doc-class/290240/1 "2009-06-11T16:36:53Z")

</div>

I have a file structure similar to the following:

LoadingSWF  
LoadingSWFDocClass

ContentSWF  
ContentSWFDocClass

In my ContentSWFDocClass I reference library elements that were “exported for actionscript”, so they only exist in the ContentSWF. The ContentSWF compiles fine because my ContentSWFDocClass can find all the resources in the library…

The problem is that I need my LoadingSWFDocClass to talk to my ContentSWFDocClass. However, when I try to include a variable (or make any reference to something) of type ContentSWFDocClass in my LoadingSWFDocClass I get a compile error because the compiler doesn’t recognize the library symbols that ContentSWFDocClass is referencing.

How can I get around this? I really need to reference elements in the library in my ContentSWFDocClass, and I also really need to be able to send commands from my LoadingSWFDocClass to my ContentSWFDocClass.

Thanks.
