# Duplicate MC positioning

**URL:** <https://forum.kirupa.com/t/duplicate-mc-positioning/31665>\
**Category:** flash\
**Created:** [September 25, 2003, 2:38pm UTC](https://forum.kirupa.com/t/duplicate-mc-positioning/31665 "2003-09-25T14:38:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![topper](https://avatars.discourse-cdn.com/v4/letter/t/9dc877/32.png) [@topper](https://forum.kirupa.com/u/topper)\
**Post date:** [September 25, 2003, 2:38pm UTC](https://forum.kirupa.com/t/duplicate-mc-positioning/31665/1 "2003-09-25T14:38:28Z")

</div>

Hi Guys,

I have managed to put this code together which duplicates a MC 5 times, to a certain position every 2 seconds this is not a problem.

> 

onClipEvent (enterFrame) {

```
xoffset = -235;
yoffset = 103;
xunit = 70;

```

if (\_root.myseconds1 \> 2) {  
if(\_root.clips \<=4) {  
i = i + 1;  
duplicateMovieClip(\_root.figure.mgame.doc, “doc” + i, i);  
cur = \_root.figure.mgame[“doc”+i];  
cur.\_x = xoffset+(xunit\*i);  
cur.\_y = yoffset;  
\_root.myseconds1 = 0  
\_root.clips = \_root.clips + 1;  
}  
}  
updateAfterEvent();  
}

What i would like to do is that when one of the duplicate movie clips has been moved (the Duplicate clips are draggable) another duplicate movie clips should take its place, in the exact position that the previous MC was in. Any ideas on how to do this ?

Any help would be much appreciated.
