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?