# \[MX\] duplicating MCs plz help

**URL:** <https://forum.kirupa.com/t/mx-duplicating-mcs-plz-help/13851>\
**Category:** Uncategorized\
**Created:** [February 18, 2003, 9:53pm UTC](https://forum.kirupa.com/t/mx-duplicating-mcs-plz-help/13851 "2003-02-18T21:53:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zylum](https://avatars.discourse-cdn.com/v4/letter/z/d26b3c/32.png) [@zylum](https://forum.kirupa.com/u/zylum)\
**Post date:** [February 18, 2003, 9:53pm UTC](https://forum.kirupa.com/t/mx-duplicating-mcs-plz-help/13851/1 "2003-02-18T21:53:06Z")

</div>

hi,

i’m trying to duplicate a movie clip when a variable reaches a certain number… this is the code i used…

code:

* * *

```
if (numBlts&lt;300) {
	_root.power = 1;
	_root.p += 1;
	duplicateMovieClip(_root.plus, "plus"+p, p);
}

```

* * *

the problem is that i just want to duplicate it once everytime numBlts gets below 300. after numBlts increases above 300 and then goes below 300 i want the clip to duplicate. All its doing now is duplicating infinite times…

Is there any way around this problem?

-mike

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 18, 2003, 9:56pm UTC](https://forum.kirupa.com/t/mx-duplicating-mcs-plz-help/13851/2 "2003-02-18T21:56:37Z")

</div>

try a for loop instead.

for(x=0; x\<300; x++){  
duplicateMovieClip(\_root.plus, “plus”+x, x);  
}
