# \[AS2.0\] another duplicate movie clip prob

**URL:** <https://forum.kirupa.com/t/as2-0-another-duplicate-movie-clip-prob/180328>\
**Category:** flash\
**Created:** [February 27, 2006, 8:56pm UTC](https://forum.kirupa.com/t/as2-0-another-duplicate-movie-clip-prob/180328 "2006-02-27T20:56:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cermunnos](https://avatars.discourse-cdn.com/v4/letter/c/ebca7d/32.png) [@cermunnos](https://forum.kirupa.com/u/cermunnos)\
**Post date:** [February 27, 2006, 8:56pm UTC](https://forum.kirupa.com/t/as2-0-another-duplicate-movie-clip-prob/180328/1 "2006-02-27T20:56:43Z")

</div>

I flicked through a couple of treads in the foums to see if I could find a solution to this but alas no.

Anyways

I have an MovieClip **star** with a setup var X which is set to 0 for the thing I’m duplicating, namely **star**

===Star======

onClipEvent(load)  
{  
x=0;  
}

If I duplicate the clip a bunch of times so I have **Star0** … **N**  
Is there a way to set the x value here to the i value of the loop for each object duplicated. Such that star0 will have its x=0, star2 has its x=1 and so on.

[COLOR=“Purple”]setProperty[/COLOR] wont do it or [COLOR=“Navy”]\_root[“star”].x=i;[/COLOR]

any1 have any experience with this?
