# duplicatedMovieClip problem (should be simple)

**URL:** <https://forum.kirupa.com/t/duplicatedmovieclip-problem-should-be-simple/257955>\
**Category:** flash\
**Created:** [April 18, 2008, 8:02pm UTC](https://forum.kirupa.com/t/duplicatedmovieclip-problem-should-be-simple/257955 "2008-04-18T20:02:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mightyhokie](https://avatars.discourse-cdn.com/v4/letter/m/e47774/32.png) [@mightyhokie](https://forum.kirupa.com/u/mightyhokie)\
**Post date:** [April 18, 2008, 8:02pm UTC](https://forum.kirupa.com/t/duplicatedmovieclip-problem-should-be-simple/257955/1 "2008-04-18T20:02:46Z")

</div>

I have three MC’s on the stage. One is supposed to remain singular, but two are supposed to duplicate themselves 25 times.

Here is the code:

function createWVU(){  
w = 0;  
while (w\<25) {  
duplicateMovieClip(wvu\_mc,“wvu”+w, w);  
w++;

```
}

```

};

function createUVA(){  
u = 0;  
while (u\<25) {  
duplicateMovieClip(uva\_mc,“uva”+u, u);  
u++;  
}  
};

createWVU();  
createUVA();

* * *

The problem that I am having is that it will execute the last function called (in this case createUVA()😉 but not the previous one (createWVU();). If I switch them so createWVU is below createUVA then the WVU i called, but not the UVA.

I’ve created a trace for each function and it says that it is making 25 of each.  
I’ve attached the zip file of the FLA.  
Any suggestions?
