# Getting rid of a duplicated movie clip

**URL:** <https://forum.kirupa.com/t/getting-rid-of-a-duplicated-movie-clip/82627>\
**Category:** flash\
**Created:** [March 11, 2005, 8:22pm UTC](https://forum.kirupa.com/t/getting-rid-of-a-duplicated-movie-clip/82627 "2005-03-11T20:22:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gaming\_monkey](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/gaming_monkey/32/772_2.png) [@gaming\_monkey](https://forum.kirupa.com/u/gaming_monkey)\
**Post date:** [March 11, 2005, 8:22pm UTC](https://forum.kirupa.com/t/getting-rid-of-a-duplicated-movie-clip/82627/1 "2005-03-11T20:22:51Z")

</div>

I use this code on frame 1:

```auto
 topEdge = 0
leftEdge = 0
rightEdge = 550; //length of stage, CHANGE THIS 
bottomEdge = 400; //width of stage, CHANGE THIS 
for (i=0;i<50;i++) { 
	  _root.snow_mc.duplicateMovieClip("flake"+i, i); 
   _root["flake"+i]._x = Math.random()*(rightEdge-20) + 10; 
   _root["flake"+i]._y = Math.random()*(bottomEdge) + 10; 
   
   _root["flake"+i]._alpha = Math.random()*80+20; 
   i++; 
} 

```

and it works great, but the flakes get duplicated even when i go to frame 2. What I would like is code to get rid of the movie clip, can anyone help?

Thank you.
