# Duplicate movieclip holder

**URL:** <https://forum.kirupa.com/t/duplicate-movieclip-holder/43040>\
**Category:** Uncategorized\
**Created:** [February 18, 2004, 5:48am UTC](https://forum.kirupa.com/t/duplicate-movieclip-holder/43040 "2004-02-18T05:48:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bugjuice](https://avatars.discourse-cdn.com/v4/letter/b/d78d45/32.png) [@bugjuice](https://forum.kirupa.com/u/bugjuice)\
**Post date:** [February 18, 2004, 5:48am UTC](https://forum.kirupa.com/t/duplicate-movieclip-holder/43040/1 "2004-02-18T05:48:40Z")

</div>

hey guys i sent up a question for a lego game3 weeks ago – i got the game to work splendid thanks guys

heres the link–  
[http://www.rit.edu/~ast7707/finalprojectok5.swf](http://www.rit.edu/~ast7707/finalprojectok5.swf)

i have a question though  
–They duplicate and stuff but i want it to stop duplicating if the previous clip is not moved from where it was duplicated

heres the code im using to duplicate the movieclips

on (release) {  
music = new Sound();  
music.attachSound(“click10”);  
music.start(0, 1);  
if (i\<900) {  
duplicateMovieClip("\_root.box3red", “box3red”+i, i);  
\_root[“box3red”+i].\_x = random(30)+50;  
\_root[“box3red”+i].\_y = random(60)+50;  
\_root[“box3red”+i].onRelease = function() {  
trace(this.\_name);  
delete this.onMouseMove;  
};
