# Duplicating my movieclip to an area

**URL:** https://forum.kirupa.com/t/duplicating-my-movieclip-to-an-area/282911
**Category:** flash
**Created:** [February 27, 2009, 5:28pm UTC](https://forum.kirupa.com/t/duplicating-my-movieclip-to-an-area/282911 "2009-02-27T17:28:56Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![lilleypants](https://avatars.discourse-cdn.com/v4/letter/l/f17d59/32.png) [@lilleypants](https://forum.kirupa.com/u/lilleypants)
#### Post date: [February 27, 2009, 5:28pm UTC](https://forum.kirupa.com/t/duplicating-my-movieclip-to-an-area/282911/1 "2009-02-27T17:28:56Z")

</div>

I have a game where you click a button and I want a movieclip to be duplicated in a certain area which is a movie clip named swamp\_mc.

On the button I am writing:

```auto
on (press) {
	i = i + 1;
	duplicateMovieClip (_root.medowCar_mc, "medow" + i, i);
}

```

But on the actual movieclip at the moment it just randomizes the location like so and only allows one to be duplicated where I want every time it clicks the it produces another copy of the movieclip:

```auto
onClipEvent (load) {
	this._x = random(822);
	this._y = random(147);
}

```

Please help ☹
