function hideClips() {
for (i=1; i<17; i++) {
_root["b" add i]._visible = false;
}
}
This code is working fine in flash mx but in flash 8 generates an error like this
Error Scene=Scene 1, layer=Layer 1, frame=1:Line 5: ‘]’ expected
_root[“b” add i]._visible = false;
Error Scene=Scene 1, layer=Layer 1, frame=1:Line 10: Unexpected ‘}’ encountered
}
Total ActionScript Errors: 2 Reported Errors: 2
What is going wrong with. How to rewrite this code for flash 8 :whistle: