stuie
1
Can anyone see why this Loop does’nt work.
for (i=1; i<25; i++) {
tellTarget (_root[“FaultRateChart.frBar#”+i]) {
gotoAndStop (eval(_root[“sRate”+i])+1);
}
}
But this one does.
a = 1;
while (Number(a)<25) {
tellTarget (“frBar#” add a) {
gotoAndStop (eval("_root.sRate" add …/:a)+1);
}
a = Number(a)+1;
}
system
2
Maybe try
for (var i = 1; i<25; i++) {
with (eval("_root.FaultRateChart.frBar#".concat(i))) {
gotoAndStop(eval("_root.sRate".concat(i))+1);
}
}
system
3
try
for (i=1; i<25; i++) {
_root["FaultRateChart.frBar#"+i].gotoAndStop._root["sRate"+i+1]
}
not sure if this works for Flash 5 though :-\