# Unload movieclip

**URL:** https://forum.kirupa.com/t/unload-movieclip/33887
**Category:** Uncategorized
**Created:** [October 24, 2003, 8:43pm UTC](https://forum.kirupa.com/t/unload-movieclip/33887 "2003-10-24T20:43:08Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Tha\_Ripper](https://avatars.discourse-cdn.com/v4/letter/t/e47c2d/32.png) [@Tha\_Ripper](https://forum.kirupa.com/u/Tha_Ripper)
#### Post date: [October 24, 2003, 8:43pm UTC](https://forum.kirupa.com/t/unload-movieclip/33887/1 "2003-10-24T20:43:08Z")

</div>

Hellow  
I can load an .swf in my MC by

knop.onRelease = function() {  
holder.loadMovie(“alain.swf”);  
alain.swf.\_width = 464;  
alain.swf.\_height = 276;  
};

but how can I get the MC empty again if you release another button?

---

<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: [October 24, 2003, 8:47pm UTC](https://forum.kirupa.com/t/unload-movieclip/33887/2 "2003-10-24T20:47:57Z")

</div>

```auto

andereknop.onRelease = function(){
holder.unloadMovie();
}

```

---

<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: [October 24, 2003, 10:27pm UTC](https://forum.kirupa.com/t/unload-movieclip/33887/3 "2003-10-24T22:27:07Z")

</div>

I’ve tried that but it didn’t work out.  
You’ve seen the praesidium mc pop up when you go over it huh? Well I want the mc to unload when they klik that.

But when I try to put the action in it, everything blocks…

---

<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: [October 25, 2003, 6:54am UTC](https://forum.kirupa.com/t/unload-movieclip/33887/4 "2003-10-25T06:54:55Z")

</div>

Well yeah, you must make sure that you gave your button and your holder movieclip the correct instance name (not the same as the name in the library).

If you click one of the bttons in the preasidium mc, another person is supposed to load right ? So why use unloadMovie if you need to loadMovie again right after it ? By using loadMovie, the previous content in the movieclip you’re loading it into will be replaced by what you load in it.

---

<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: [October 25, 2003, 8:48am UTC](https://forum.kirupa.com/t/unload-movieclip/33887/5 "2003-10-25T08:48:05Z")

</div>

Because first you have to see the text abaut the new person
