# Communication between externally loaded SWFs

**URL:** <https://forum.kirupa.com/t/communication-between-externally-loaded-swfs/235820>\
**Category:** flash\
**Created:** [August 14, 2007, 11:08pm UTC](https://forum.kirupa.com/t/communication-between-externally-loaded-swfs/235820 "2007-08-14T23:08:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rbok002](https://avatars.discourse-cdn.com/v4/letter/r/c89c15/32.png) [@rbok002](https://forum.kirupa.com/u/rbok002)\
**Post date:** [August 14, 2007, 11:08pm UTC](https://forum.kirupa.com/t/communication-between-externally-loaded-swfs/235820/1 "2007-08-14T23:08:31Z")

</div>

Hi

I have a problem with working with loading different SWFs into a main SWF file. I have one main SWf file (menu.swf) and then several external files (Game1.swf, Game2.swf, Game3.swf etc).

The main SWF starts off and loads Game1.swf into the main SWF. After a user finishes Game 1 he clicks on a button inside the Game1.swf and thats supposed to unload Game1 and loads Game2 into the menu swf.

The trouble is I have no idea how to reference methods in the main SWF with the loaded SWF. Anyone have any ideas?  
I tried root.parent but that wouldn’t compile.

Maybe there’s a better way of doing it?

Any help would be greatly appreciated.
