# To remove a mc

**URL:** https://forum.kirupa.com/t/to-remove-a-mc/21996
**Category:** flash
**Created:** [May 28, 2003, 11:38pm UTC](https://forum.kirupa.com/t/to-remove-a-mc/21996 "2003-05-28T23:38:39Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Avi](https://avatars.discourse-cdn.com/v4/letter/a/b9bd4f/32.png) [@Avi](https://forum.kirupa.com/u/Avi)
#### Post date: [May 28, 2003, 11:38pm UTC](https://forum.kirupa.com/t/to-remove-a-mc/21996/1 "2003-05-28T23:38:39Z")

</div>

Code attached

Im trying to have a button that would remove the mc that has been inserted from an array.

---

<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: [May 28, 2003, 11:50pm UTC](https://forum.kirupa.com/t/to-remove-a-mc/21996/2 "2003-05-28T23:50:09Z")

</div>

I believe you can do it with the removeMovieclip action, apply something like this to your button:[AS]on (release) {  
\_root.emptyMC.removeMovieClip();  
}[/AS]

Just change myMC to whatever instance name you’re using.

---

<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: [May 29, 2003, 12:11am UTC](https://forum.kirupa.com/t/to-remove-a-mc/21996/3 "2003-05-29T00:11:53Z")

</div>

Thanks for the info…  
also, i need a way to keep that mc active while attaching a different 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: [May 29, 2003, 12:22am UTC](https://forum.kirupa.com/t/to-remove-a-mc/21996/4 "2003-05-29T00:22:32Z")

</div>

btw i cant get that remove mc bit to work either!!!

---

<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: [May 29, 2003, 3:07am UTC](https://forum.kirupa.com/t/to-remove-a-mc/21996/5 "2003-05-29T03:07:38Z")

</div>

Hey, we were just talking about this: [http://www.kirupaforum.com/forums/showthread.php?s=&threadid=24401](http://www.kirupaforum.com/forums/showthread.php?s=&threadid=24401).

Later,  
–Elios

---

<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: [May 29, 2003, 5:03am UTC](https://forum.kirupa.com/t/to-remove-a-mc/21996/6 "2003-05-29T05:03:23Z")

</div>

I still cant get this thing to work.

I need a button that will remove a mc and i need to know how to keep a mc without having an exsisting one remove from the stage.

---

<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: [May 29, 2003, 6:11am UTC](https://forum.kirupa.com/t/to-remove-a-mc/21996/7 "2003-05-29T06:11:54Z")

</div>

👽

> 

To remove clips that weren’t attached or duplicated, you have to swapDepths them to a positive depths. For instance 100000 (probably empty).

So…

```php

//and now...the programmer inches closer....
//and closer...and...Alakazam! I'm a magician!
myMovieClip.swapDepths(100000)

```

Pardon my commentary…it’s late…but that should work.

Later,  
–Elios

---

<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: [May 29, 2003, 7:46pm UTC](https://forum.kirupa.com/t/to-remove-a-mc/21996/8 "2003-05-29T19:46:57Z")

</div>

Ok guys i just cant get this thing to work still.

Heres the fla file. What im trying to do is allow the user to choose a material,

Problem 1) The previous button doesnt get ride of the mc

then give him color option for that perticular material…then when the user clicks next, they have to choose a material for the sleeves…now heres the problem.

Problem 2) the second choice removes the first choice!!. I need the first choice to stay on the stage

Any Help will be realy appreciated

---

<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: [May 29, 2003, 7:56pm UTC](https://forum.kirupa.com/t/to-remove-a-mc/21996/9 "2003-05-29T19:56:33Z")

</div>

oops sorry the file was too big…goto

> **[Yahoo Small Business - Cheap Domains, Web Hosting, Website Builder, Ecommerce...](https://smallbusiness.yahoo.com/)**
>
> Yahoo Small Business Offers Cheap Domain Names, Web Hosting, Easy Website Builder, Business Email, Local Listings, and Ecommerce Solutions for Your Small Business.

thanks
