I’m modifing some code I, um, borrowed. The following loop statements check a movement variable on 9 different levels. Ive modified my site structure to multiple MCs instead of levels.
I can’t seem to get the correct syntax on the loops to change the evaluation line from levels to MC’s. the trick is that the MCs are all on level0 so I need to refer to them by the full name.
In fakescript:
_level0. eval(“mc”+i)…
Heres the original script.
on (press) {
inmotion = false;
for (i=1; i<=10; i++) {
if (eval("_level"+i).movement == true) {
inmotion = true;
}
}
if (!inmotion) {
for (i=1; i<=10; i++) {
if (i != 2) {
if (eval("_level"+i).active == true) {
eval("_level"+i).gotoAndPlay(“play_out”);
}
}
}
}
inmotion = false;
for (i=1; i<=10; i++) {
if (eval("_level"+i).movement == true) {
inmotion = true;
}
}
if (!inmotion && _level0.mc2.active == false) {
_level0.mc2.gotoAndPlay(“play”);
        }
}
avlisdivad