# How do i limit # of MCs?

**URL:** <https://forum.kirupa.com/t/how-do-i-limit-of-mcs/82374>\
**Category:** Uncategorized\
**Created:** [March 9, 2005, 9:48pm UTC](https://forum.kirupa.com/t/how-do-i-limit-of-mcs/82374 "2005-03-09T21:48:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rmthegreat88](https://avatars.discourse-cdn.com/v4/letter/r/6bbea6/32.png) [@rmthegreat88](https://forum.kirupa.com/u/rmthegreat88)\
**Post date:** [March 9, 2005, 9:48pm UTC](https://forum.kirupa.com/t/how-do-i-limit-of-mcs/82374/1 "2005-03-09T21:48:10Z")

</div>

well i have this code

```auto

rand=Math.round(Math.random()*10);
if(rand==1){
duplicateMovieClip("glowdrop", "glowdrop" add x, x);
setProperty("glowdrop" add x, _x, random(550));
x = Number(x)+1;
}
if(rand==2){
duplicateMovieClip("glowdrop2", "glowdrop2" add x, x);
setProperty("glowdrop2" add x, _x, random(550));
x = Number(x)+1;
}

```

how do i limit the # of movie clips that can appear on the stage at one time?
