# How to remove an externally loaded swf?

**URL:** https://forum.kirupa.com/t/how-to-remove-an-externally-loaded-swf/60525
**Category:** Uncategorized
**Created:** [August 10, 2004, 3:03pm UTC](https://forum.kirupa.com/t/how-to-remove-an-externally-loaded-swf/60525 "2004-08-10T15:03:58Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![kirstenosborn](https://avatars.discourse-cdn.com/v4/letter/k/5f8ce5/32.png) [@kirstenosborn](https://forum.kirupa.com/u/kirstenosborn)
#### Post date: [August 10, 2004, 3:03pm UTC](https://forum.kirupa.com/t/how-to-remove-an-externally-loaded-swf/60525/1 "2004-08-10T15:03:58Z")

</div>

i am trying to remove an external swf from my main movie. it doesnt want to go away! does anyone know how to do this? i tried to use:

on (press) {  
\_root.contents.unloadMovie();  
}

but it didnt work. it just made the move get stuck.

here is what it looks like now:  
[http://www.braddockdesign.com/kirupahelp/removeMovie.html](http://www.braddockdesign.com/kirupahelp/removeMovie.html)

i am attaching the file here:  
[http://www.braddockdesign.com/kirupahelp/removeMovie.zip](http://www.braddockdesign.com/kirupahelp/removeMovie.zip)

thanks for your help!  
:hugegrin:

---

<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: [August 10, 2004, 3:33pm UTC](https://forum.kirupa.com/t/how-to-remove-an-externally-loaded-swf/60525/2 "2004-08-10T15:33:16Z")

</div>

try

on(press){  
\_root.unloadMovie(“contents”);  
}

---

<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: [August 10, 2004, 4:10pm UTC](https://forum.kirupa.com/t/how-to-remove-an-externally-loaded-swf/60525/3 "2004-08-10T16:10:59Z")

</div>

I tried the code, but it didnt seem to work. It made the whole movie disappear.

on(press){  
\_root.unloadMovie(“text”);  
}

any other ideas?  
im stumped.

---

<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: [August 10, 2004, 4:42pm UTC](https://forum.kirupa.com/t/how-to-remove-an-externally-loaded-swf/60525/4 "2004-08-10T16:42:36Z")

</div>

whoops. try

on(release){  
unloadMovie("\_root.text");  
}

---

<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: [August 10, 2004, 4:50pm UTC](https://forum.kirupa.com/t/how-to-remove-an-externally-loaded-swf/60525/5 "2004-08-10T16:50:09Z")

</div>

it works, but only one time then it leaves both of the external swfs on the main movie. i just dont understand why its doing this. code is so annoying. urrr!

here is what i did so far:  
[http://www.braddockdesign.com/kirupahelp/removeMovie2.html](http://www.braddockdesign.com/kirupahelp/removeMovie2.html)

the fla file:  
[http://www.braddockdesign.com/kirupahelp/removeMovie2.fla](http://www.braddockdesign.com/kirupahelp/removeMovie2.fla)

(thank you)

---

<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: [August 10, 2004, 5:17pm UTC](https://forum.kirupa.com/t/how-to-remove-an-externally-loaded-swf/60525/6 "2004-08-10T17:17:54Z")

</div>

in the people\_mc, you forgot to put the unloadMovie("\_root.text");

---

<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: [August 10, 2004, 5:54pm UTC](https://forum.kirupa.com/t/how-to-remove-an-externally-loaded-swf/60525/7 "2004-08-10T17:54:47Z")

</div>

oh. ok! thanks for your help
