# When the game of an external swf is finished, remove the external swf

**URL:** <https://forum.kirupa.com/t/when-the-game-of-an-external-swf-is-finished-remove-the-external-swf/331098>\
**Category:** flash\
**Created:** [May 16, 2013, 4:22pm UTC](https://forum.kirupa.com/t/when-the-game-of-an-external-swf-is-finished-remove-the-external-swf/331098 "2013-05-16T16:22:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sarah\_Pattison](https://avatars.discourse-cdn.com/v4/letter/s/6f9a4e/32.png) [@Sarah\_Pattison](https://forum.kirupa.com/u/Sarah_Pattison)\
**Post date:** [May 16, 2013, 4:22pm UTC](https://forum.kirupa.com/t/when-the-game-of-an-external-swf-is-finished-remove-the-external-swf/331098/1 "2013-05-16T16:22:00Z")

</div>

I am creating a series of mini games and animations and plan on bringing them all into one flash file. Each of the games need to disappear when the player has finished them. I don’t know what to put into the section in the external swfs when the game is done. I currently just have a trace (“finished”).

In my main swf you should click start and a game swf appears and when you are finished it, it should disappear.

I have looked up tutorials and they something about accessing variables in the external swfs but I got nowhere with them.
