# Removing Multiple Movie Clips

**URL:** <https://forum.kirupa.com/t/removing-multiple-movie-clips/25386>\
**Category:** flash\
**Created:** [July 12, 2003, 2:13am UTC](https://forum.kirupa.com/t/removing-multiple-movie-clips/25386 "2003-07-12T02:13:23Z")\
**Posts on this page:** 19\
**Page:** 2

<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:** [July 12, 2003, 6:01am UTC](https://forum.kirupa.com/t/removing-multiple-movie-clips/25386/21 "2003-07-12T06:01:40Z")

</div>

man, that didn’t work at all.

```auto

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.

---

<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:** [July 12, 2003, 6:07am UTC](https://forum.kirupa.com/t/removing-multiple-movie-clips/25386/22 "2003-07-12T06:07:27Z")

</div>

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

---

<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:** [July 12, 2003, 6:09am UTC](https://forum.kirupa.com/t/removing-multiple-movie-clips/25386/23 "2003-07-12T06:09:46Z")

</div>

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

---

<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:** [July 12, 2003, 6:14am UTC](https://forum.kirupa.com/t/removing-multiple-movie-clips/25386/24 "2003-07-12T06:14:44Z")

</div>

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).

---

<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:** [July 12, 2003, 6:24am UTC](https://forum.kirupa.com/t/removing-multiple-movie-clips/25386/25 "2003-07-12T06:24:47Z")

</div>

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

---

<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:** [July 12, 2003, 6:31am UTC](https://forum.kirupa.com/t/removing-multiple-movie-clips/25386/26 "2003-07-12T06:31:15Z")

</div>

code for the [x] button on the sections

```auto

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.

---

<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:** [July 12, 2003, 6:37am UTC](https://forum.kirupa.com/t/removing-multiple-movie-clips/25386/27 "2003-07-12T06:37:05Z")

</div>

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

---

<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:** [July 12, 2003, 6:38am UTC](https://forum.kirupa.com/t/removing-multiple-movie-clips/25386/28 "2003-07-12T06:38:51Z")

</div>

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.

---

<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:** [July 12, 2003, 6:41am UTC](https://forum.kirupa.com/t/removing-multiple-movie-clips/25386/29 "2003-07-12T06:41:40Z")

</div>

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?  
:-\

---

<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:** [July 12, 2003, 6:42am UTC](https://forum.kirupa.com/t/removing-multiple-movie-clips/25386/30 "2003-07-12T06:42:59Z")

</div>

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

---

<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:** [July 12, 2003, 6:51am UTC](https://forum.kirupa.com/t/removing-multiple-movie-clips/25386/31 "2003-07-12T06:51:37Z")

</div>

Hmm lemme thin a better way

---

<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:** [July 12, 2003, 7:12am UTC](https://forum.kirupa.com/t/removing-multiple-movie-clips/25386/32 "2003-07-12T07:12:55Z")

</div>

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

---

<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:** [July 12, 2003, 2:12pm UTC](https://forum.kirupa.com/t/removing-multiple-movie-clips/25386/33 "2003-07-12T14:12:41Z")

</div>

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

---

<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:** [July 12, 2003, 5:23pm UTC](https://forum.kirupa.com/t/removing-multiple-movie-clips/25386/34 "2003-07-12T17:23:32Z")

</div>

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

---

<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:** [July 12, 2003, 5:24pm UTC](https://forum.kirupa.com/t/removing-multiple-movie-clips/25386/35 "2003-07-12T17:24:22Z")

</div>

> \*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

---

<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:** [July 12, 2003, 5:29pm UTC](https://forum.kirupa.com/t/removing-multiple-movie-clips/25386/36 "2003-07-12T17:29:39Z")

</div>

> _Originally posted by kax_  
> **the removeMovieClip method only works if the MovieClip depth is equal or greater than 0.**

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

```

:sigh:

---

<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:** [July 12, 2003, 5:33pm UTC](https://forum.kirupa.com/t/removing-multiple-movie-clips/25386/37 "2003-07-12T17:33:38Z")

</div>

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

---

<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:** [July 12, 2003, 5:45pm UTC](https://forum.kirupa.com/t/removing-multiple-movie-clips/25386/38 "2003-07-12T17:45:15Z")

</div>

> _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.**

---

<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:** [July 12, 2003, 8:29pm UTC](https://forum.kirupa.com/t/removing-multiple-movie-clips/25386/39 "2003-07-12T20:29:18Z")

</div>

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

[Previous page](https://forum.kirupa.com/t/removing-multiple-movie-clips/25386.md?page=1)
