# Load external SWF on top on another

**URL:** https://forum.kirupa.com/t/load-external-swf-on-top-on-another/63332
**Category:** flash
**Created:** [September 5, 2004, 3:31pm UTC](https://forum.kirupa.com/t/load-external-swf-on-top-on-another/63332 "2004-09-05T15:31:36Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![bjory](https://avatars.discourse-cdn.com/v4/letter/b/5e9695/32.png) [@bjory](https://forum.kirupa.com/u/bjory)
#### Post date: [September 5, 2004, 3:31pm UTC](https://forum.kirupa.com/t/load-external-swf-on-top-on-another/63332/1 "2004-09-05T15:31:36Z")

</div>

I have a main screen swf and a button which brings out an external swf using the loadMovie() function.

This works fine. But how can I have a button which only closes the external swf but not the main screen swf? What function should I use or how I can achieve that?

It’s like an layer which just sits on top of the main swf. How can I close just the top layer?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [September 5, 2004, 3:50pm UTC](https://forum.kirupa.com/t/load-external-swf-on-top-on-another/63332/2 "2004-09-05T15:50:12Z")

</div>

You could use the [font=courier new]MovieClip.unloadMovie()[/font] method.

Example:

```auto
// load movie.swf into my_mc
my_mc.loadMovie("movie.swf");
// unload the contents of my_mc
my_mc.unloadMovie();

```
