# Accessing classes from externally loaded swf's?

**URL:** <https://forum.kirupa.com/t/accessing-classes-from-externally-loaded-swfs/321771>\
**Category:** flash\
**Created:** [April 30, 2011, 9:56pm UTC](https://forum.kirupa.com/t/accessing-classes-from-externally-loaded-swfs/321771 "2011-04-30T21:56:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pcehnaids](https://avatars.discourse-cdn.com/v4/letter/p/90ced4/32.png) [@pcehnaids](https://forum.kirupa.com/u/pcehnaids)\
**Post date:** [April 30, 2011, 9:56pm UTC](https://forum.kirupa.com/t/accessing-classes-from-externally-loaded-swfs/321771/1 "2011-04-30T21:56:39Z")

</div>

I have a document class which links to several classes, one of which adds a container onto the stage and loads external .swf’s into it.

**Q:** How do I access the various classes loaded in the document class from the external swf timeline?

For instance, when you click a button in the loaded swf it changes the soundtrack from the soundtrack class. I have tried dispatchevent from the external swf timeline, but I still can’t seem to get it to work. Is this supposed to work, or should I be doing something different?

Thanks for the help!
