I know what the problem with this code is, I just have no clue how to fix it.
This isn't my actual code, it's just a simple example to show the problem.
Say I have 3 movieclips with the instance name of mc0, mc1, and mc 2.
Say I want all 3 movieclips to go to frame 2.
for(i=0; i<3; i++) {
mc[i].gotoAndStop(2);
}
I know the problem is that you can't do mc[i]. My question is, is there another way to do this without actually typing in
mc1.gotoAndStop(2);
mc2.gotoAndStop(2);
mc3.gotoAndStop(2);
In this example, it doesn't sound so bad, but my code is much larger than that, so it'd take 100's of lines of code to do it the simple way.
So, is there anything like mc[i] I can do, or am I stuck telling each mc to individually go to frame 2.
Thanks in advance :)