# Removing a duplicate mc

**URL:** https://forum.kirupa.com/t/removing-a-duplicate-mc/236514
**Category:** Uncategorized
**Created:** [August 21, 2007, 5:21pm UTC](https://forum.kirupa.com/t/removing-a-duplicate-mc/236514 "2007-08-21T17:21:07Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![kekekiko](https://avatars.discourse-cdn.com/v4/letter/k/b4bc9f/32.png) [@kekekiko](https://forum.kirupa.com/u/kekekiko)
#### Post date: [August 21, 2007, 5:21pm UTC](https://forum.kirupa.com/t/removing-a-duplicate-mc/236514/1 "2007-08-21T17:21:07Z")

</div>

I am stuck. I have managed to make a button to create duplicates of an mc which are draggable and include an input text box, now need to be able to get rid of them!

the code on the button to duplicate is:

on (release) {  
count++;  
duplicateMovieClip (“nametag”, “newnametag”+count, count);  
\_root[“newnametag”+count].\_x = 100;  
\_root[“newnametag”+count].\_y = 50;  
}

This works fine in creating the duplicate.

I tried creating a similar button with ‘removeMovieClip’ instead of ‘duplicate’ but won’t work. I also tried…on press  
\_root.nametag.newnametag.\_visble = false…to no avail

What am I doing wrong?
