# Duplicating Movie Clip Help

**URL:** <https://forum.kirupa.com/t/duplicating-movie-clip-help/282385>\
**Category:** flash\
**Created:** [February 21, 2009, 5:02am UTC](https://forum.kirupa.com/t/duplicating-movie-clip-help/282385 "2009-02-21T05:02:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Outmodeduser](https://avatars.discourse-cdn.com/v4/letter/o/b487fb/32.png) [@Outmodeduser](https://forum.kirupa.com/u/Outmodeduser)\
**Post date:** [February 21, 2009, 5:02am UTC](https://forum.kirupa.com/t/duplicating-movie-clip-help/282385/1 "2009-02-21T05:02:04Z")

</div>

First time poster, many times reader :ne:  
I am trying to create a game similar to armor alley. I have a movieclip representing infantry “inf” and a button you press to deploy the infantry. I followed the movieclip duplication tutorial on this site and it helped, however i am not able to create multiple copies, i.e. 1. when i press the button it creates a clone 2. if i press it again, the clone goes back to its start position. The code looks like this:

```auto
deployInf = function() {
		for (i=0; i<100; i++) {
			_root.inf.duplicateMovieClip ("infantry"+i, i, {_x: Stage.height-44})
				
		}
	}
on (press) {
	deployInf()
}

```

Any Help would be incredibly apreciated! Thanks
