Need serious help with load and unload (mx)

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.

Did you use loadMovie or loadMovieNum to load the movies ? :slight_smile:

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

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

Oh, and have a look at this

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.

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:

FLA

just images and text info.swf

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 :stuck_out_tongue: So you’ll have to find it, and remove it.