PDA

Click to See Complete Forum and Search --> : bracket problems



gamist
12-11-2002, 03:16 PM
This doesn't work:

for(a=1;a<=5;a++) {
for(b=1;b<=5;b++) {
eval(_root["column"+a+".cube"+b]).gotoAndStop(_root.cube_so.data["column"+a]);
}
}

The _root["column'+a] part works fine, but when I do both parts:
_root["column"+a+".cube"+b]) it doesn't work. Therefore, the problem starts when I include the second part, so how do you add it with "correct" code?

I've tried different combos but I haven't had any luck. Thanks for your help.

gamist

gamist
12-11-2002, 03:51 PM
got it...nevermind!