# Removing movieclip

**URL:** <https://forum.kirupa.com/t/removing-movieclip/240798>\
**Category:** Uncategorized\
**Created:** [October 6, 2007, 9:37am UTC](https://forum.kirupa.com/t/removing-movieclip/240798 "2007-10-06T09:37:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kylberg](https://avatars.discourse-cdn.com/v4/letter/k/8491ac/32.png) [@kylberg](https://forum.kirupa.com/u/kylberg)\
**Post date:** [October 6, 2007, 9:37am UTC](https://forum.kirupa.com/t/removing-movieclip/240798/1 "2007-10-06T09:37:27Z")

</div>

im creating a simple game where you drag an object across the screen to a safe-zone, trying to avoid a bunch of balls flying around.  
I duplicated the balls with this code:  
i = 0;  
while (i\<10) {  
dot.duplicateMovieClip(“dot”+i, i);  
i++;  
}

when you lose/win you go to a screen where it says either “game over” or “congratulations”, right now, these balls still move around when I get here. how do I remove them? what code do I use and where do I put it?
