# Creating a button in an external MC that controls the main SWF

**URL:** <https://forum.kirupa.com/t/creating-a-button-in-an-external-mc-that-controls-the-main-swf/267473>\
**Category:** flash\
**Created:** [August 1, 2008, 3:50pm UTC](https://forum.kirupa.com/t/creating-a-button-in-an-external-mc-that-controls-the-main-swf/267473 "2008-08-01T15:50:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jasonhardwick](https://avatars.discourse-cdn.com/v4/letter/j/c68b51/32.png) [@jasonhardwick](https://forum.kirupa.com/u/jasonhardwick)\
**Post date:** [August 1, 2008, 3:50pm UTC](https://forum.kirupa.com/t/creating-a-button-in-an-external-mc-that-controls-the-main-swf/267473/1 "2008-08-01T15:50:33Z")

</div>

How can i do this i have a flash file (MAIN) that loads an external mc (SUB1) onto a new level. On my SUB1 MC i have a close button. How can i make it so if you click on the close button it unloads the SUB1 MC.

this is what i have is it anywhere close?

```auto

on (release) {
	_root.removeMovieClip("SUB1.swf");
}

```
