# Unloadmc flash5

**URL:** https://forum.kirupa.com/t/unloadmc-flash5/19084
**Category:** Uncategorized
**Created:** [April 24, 2003, 4:15am UTC](https://forum.kirupa.com/t/unloadmc-flash5/19084 "2003-04-24T04:15:22Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![dunno](https://avatars.discourse-cdn.com/v4/letter/d/a88e4f/32.png) [@dunno](https://forum.kirupa.com/u/dunno)
#### Post date: [April 24, 2003, 4:15am UTC](https://forum.kirupa.com/t/unloadmc-flash5/19084/1 "2003-04-24T04:15:22Z")

</div>

can anybody teach me how to unload a mc with this

on (release) {  
loadMovie (“button.swf”,\_root.dropzone);  
{

how to unload the button.swf

---

<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: [April 24, 2003, 5:32am UTC](https://forum.kirupa.com/t/unloadmc-flash5/19084/2 "2003-04-24T05:32:39Z")

</div>

\_root.dropzone.unloadMovie();

no?

---

<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: [April 24, 2003, 7:20am UTC](https://forum.kirupa.com/t/unloadmc-flash5/19084/3 "2003-04-24T07:20:51Z")

</div>

Error opening URL “file:///E|/Study%20Flash/homepages/homepages/”

i recieve the message above when i use the following AS on another button

on (release) {  
\_root.dropzone.unloadMovie();  
loadMovieNum (“portfolio.swf”, 1);  
}

:trout:

---

<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: [April 24, 2003, 8:13am UTC](https://forum.kirupa.com/t/unloadmc-flash5/19084/4 "2003-04-24T08:13:12Z")

</div>

ok… first off, why are you unloading the movie at all?

I would suggest instead, turning it’s \_visible property to false rather than unloading the movie. If you need it later to load another movie into, just set the \_visible to true, and load the new movie. It will automaticaly kick the old one out of it self.

If you absolutely need the unloadMovie in there… then I’ll have to think about this. It might be that it’s trying to delete dropzone for some reason… I know that unloadMovie and attachMovie share references to each other in the a/s dictionary… that might relate as well.  
But really… first ask yourself if you need to unload it. It’ll save time. 🙂
