# Duplicate movie clip

**URL:** <https://forum.kirupa.com/t/duplicate-movie-clip/303737>\
**Category:** Uncategorized\
**Created:** [January 26, 2010, 10:21am UTC](https://forum.kirupa.com/t/duplicate-movie-clip/303737 "2010-01-26T10:21:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ohya](https://avatars.discourse-cdn.com/v4/letter/o/fbc32d/32.png) [@ohya](https://forum.kirupa.com/u/ohya)\
**Post date:** [January 26, 2010, 10:21am UTC](https://forum.kirupa.com/t/duplicate-movie-clip/303737/1 "2010-01-26T10:21:30Z")

</div>

[FONT=Courier New][SIZE=2]I got the following code from a tutorial regarding duplicate movie clips. But I got only 2 movie clips on stage. Anyone can explain.

amount = 50;  
while(amount\>0) {  
duplicateMovieClip ([COLOR=#ff00ff]target, new mc name, mc depth[/COLOR]);  
i = i + 1;  
amount = amount-1;  
}[/SIZE][/FONT]
