# SwapDepths Kills

**URL:** https://forum.kirupa.com/t/swapdepths-kills/14610
**Category:** flash
**Created:** [February 28, 2003, 7:53am UTC](https://forum.kirupa.com/t/swapdepths-kills/14610 "2003-02-28T07:53:25Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![sbDien](https://avatars.discourse-cdn.com/v4/letter/s/ce7236/32.png) [@sbDien](https://forum.kirupa.com/u/sbDien)
#### Post date: [February 28, 2003, 7:53am UTC](https://forum.kirupa.com/t/swapdepths-kills/14610/1 "2003-02-28T07:53:25Z")

</div>

Hi!

I am currently in the process of creating this drag and drop game. It uses swapDepths to change the levels/depths of the objects (MCs) on the stage.

Here’s the problem - to display the MCs correctly, i have to use swapdepths. However if i use this function, the MCs remain on the stage when i move on to the next keyframe…is there any function or way to remove this?

Can someone please please help me… i’m desperately in need of assistance!!

Thanks!  
sb

---

<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: [February 28, 2003, 9:24am UTC](https://forum.kirupa.com/t/swapdepths-kills/14610/2 "2003-02-28T09:24:43Z")

</div>

Hi sb,  
To remove movie clips from the scene, you can use MovieClip.removeMovieClip(); :crazy:

---

<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: [March 1, 2003, 11:12am UTC](https://forum.kirupa.com/t/swapdepths-kills/14610/3 "2003-03-01T11:12:37Z")

</div>

hi ilyaslamasse !

I tried and it works. Thanks!!

🙂
