# Getting loaded SWF to use a function from main.fla document class

**URL:** <https://forum.kirupa.com/t/getting-loaded-swf-to-use-a-function-from-main-fla-document-class/301843>\
**Category:** flash\
**Created:** [December 16, 2009, 5:43pm UTC](https://forum.kirupa.com/t/getting-loaded-swf-to-use-a-function-from-main-fla-document-class/301843 "2009-12-16T17:43:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![d0c3031](https://avatars.discourse-cdn.com/v4/letter/d/f0a364/32.png) [@d0c3031](https://forum.kirupa.com/u/d0c3031)\
**Post date:** [December 16, 2009, 5:43pm UTC](https://forum.kirupa.com/t/getting-loaded-swf-to-use-a-function-from-main-fla-document-class/301843/1 "2009-12-16T17:43:28Z")

</div>

I have a main movie with thumb movieclips that load new children and stops the main movie’s animation. Within the child there is a close buttion that removes itself. I also wanted the close button to start the animation of the main movie again once it removed the child. Since I am using a document class to load everything for the main move, how can the close button from the loaded swf use a function from the main document class?

Thanks
