Removing Multiple Movie Clips

man, that didn’t work at all.


on (release) {
awards2._visible=false;
conditions2._visible=false;
help2._visible=false;
thanks2._visible=false;
tutorials2._visible=false;
updates2._visible=false;
}

This is what happened: When clicked on, the new sections would appear under the current section. The current section would stay.

Oh, brother. Flash should have a simple unload movie clip action!!!

Your code should work.
Are those mcs loaded into an empty mc?

source file is too large to attach. i am attaching the swf instead. this is without any tampering with the code. when the code is tampered with, (read above).

Ok, whats the action of the close button on the windows?

code for the [ x ] button on the sections


on (rollOver) {
    tellTarget ("/awards2/exit") {
        gotoAndPlay("rollover");
    }
}

on (rollOut) {
    tellTarget ("/awards2/exit") {
        gotoAndPlay("rollout");
    }
}

on (release) {
    tellTarget ("/awards2") {
        gotoAndPlay("leave");
    }
}

This is for the awards section. “awards2” is the instance name of the movie clip that has the section window. “awards” is the instance name of the movie clip that has the awards button symbol.

Why dont you tell the current mc to go to its exit frame when a new movie is loaded.

How do you call up the current MC? What is its name??? Flash will have a hard time telling which MC is the window MC, because there are many other MCs running simultaneously as special effects.

Id use a variable to control which movie clip is currently being displayed and when another button is clicked, the current mc goes to its exit frame.
Does it makes sense to you?
:-\

Yeah, I know the concept, but I do not know anything about actionscript.

Hmm lemme thin a better way

why don’t u create an array of the swf files and then use a for loop and removeMovieClip(array*) or something lik that

or, if the thing thats closing all the movie clips is a button, why the hell don’t you just put:

[AS]on (release) {
removeMovieClip(“service”);
removeMovieClip(“profile”);
removeMovieClip(“contact”);
}[/AS]

really easy, really simple, no problem. and if that doesn’t work, then add the path to them as well like “_root.service” or “_root.someothercrazymc.service”

simple ways are nice too ya know

That don’t work, coppertop. Look at the attachment. I have an MC named “mc” and a button that has your code.

*Originally posted by kartik *
*why don’t u create an array of the swf files and then use a for loop and removeMovieClip(array) or something lik that **

Because I know nothing about actionscript

Originally posted by kax
the removeMovieClip method only works if the MovieClip depth is equal or greater than 0.

on (release) {
	mc.swapDepths(1000);
	removeMovieClip(mc);
}

:sigh:

Now, it can never be loaded up again… See attachment.

Originally posted by kax
if you need to load them again, you should use the attachMovie method to load them from the Library whenever you need those MovieClips.

I solved the problem. I just told all the sections to goto and play a blank frame.