# Need serious help with load and unload (mx)

**URL:** <https://forum.kirupa.com/t/need-serious-help-with-load-and-unload-mx/28063>\
**Category:** Uncategorized\
**Created:** [August 9, 2003, 3:08pm UTC](https://forum.kirupa.com/t/need-serious-help-with-load-and-unload-mx/28063 "2003-08-09T15:08:58Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eyeball](https://avatars.discourse-cdn.com/v4/letter/e/5daacb/32.png) [@Eyeball](https://forum.kirupa.com/u/Eyeball)\
**Post date:** [August 9, 2003, 3:08pm UTC](https://forum.kirupa.com/t/need-serious-help-with-load-and-unload-mx/28063/1 "2003-08-09T15:08:58Z")

</div>

Hey there

This seems to be another tough cookie to me. I have a main movie and I have bunch of external movie clips that load in my main movie when certain button is pressed. Picture this; main stage with several nice buttons which after pressing it loads a certain movie clip. But I want to add another little button that when is pressed it will unload that certain movie.swf from the main stage. in another words it will shut off the external.swf from main movie.swf (i.e if my external movie contains one pix and a little bit of text so after pressing that ‘unload’ button it will clear that pix and the text from the main.swf)

can someone help me with it, please.

thank you

I am not sure if u guys understand what I mean, and if you don’t please let me know I will try to explain differently.

---

<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 9, 2003, 3:33pm UTC](https://forum.kirupa.com/t/need-serious-help-with-load-and-unload-mx/28063/2 "2003-08-09T15:33:51Z")

</div>

Did you use loadMovie or loadMovieNum to load the movies ? 🙂

---

<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 9, 2003, 4:06pm UTC](https://forum.kirupa.com/t/need-serious-help-with-load-and-unload-mx/28063/3 "2003-08-09T16:06:33Z")

</div>

actually the way I loaded them into a main.swf; i created empty movie clip named it ‘whatever’ and added this command to a action frame

\_parent.whatever.loadMovie(“contact\_info.swf”);

or for buttons in the main.swf i used

on (release) {  
\_root.container.loadMovie(“about.swf”);  
}

same with every button or 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:** [August 9, 2003, 4:09pm UTC](https://forum.kirupa.com/t/need-serious-help-with-load-and-unload-mx/28063/4 "2003-08-09T16:09:17Z")

</div>

I actualy don’t understand your post. Can I see the FLA ?

Oh, and have a look at [this](http://www.macromedia.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary813.html)

---

<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 9, 2003, 4:50pm UTC](https://forum.kirupa.com/t/need-serious-help-with-load-and-unload-mx/28063/5 "2003-08-09T16:50:23Z")

</div>

here we go  
I attached a sample.zip so all the buttons won’t work only home button if u see in the fla’s i want to unload info.swf (images etc) from home.swf from the main movie.

---

<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 9, 2003, 4:56pm UTC](https://forum.kirupa.com/t/need-serious-help-with-load-and-unload-mx/28063/6 "2003-08-09T16:56:59Z")

</div>

So … in this FLA: Do you want the whole home.swf to be unloaded, or only the pictures from info.swf ? If you want the whole home.swf unloaded, use this FLA:

---

<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 9, 2003, 5:01pm UTC](https://forum.kirupa.com/t/need-serious-help-with-load-and-unload-mx/28063/7 "2003-08-09T17:01:10Z")

</div>

FLA

---

<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 9, 2003, 5:06pm UTC](https://forum.kirupa.com/t/need-serious-help-with-load-and-unload-mx/28063/8 "2003-08-09T17:06:46Z")

</div>

just images and text info.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:** [August 9, 2003, 8:09pm UTC](https://forum.kirupa.com/t/need-serious-help-with-load-and-unload-mx/28063/9 "2003-08-09T20:09:43Z")

</div>

Well, those pictures and the text aren’t SWF’s, so they aren’t loaded through loadMovie or loadMovieNum, so they can’t be unloaded. However, they can be set to invisible. See the FLA. There’s a remaining trace() somewhere, but I can’t find it anymore 😛 So you’ll have to find it, and remove it.
