I have a For Loop that runs through 12 possible buttons. It checks to see if each one is supposed to be loaded and if not, it animates them to fade out. The for loop works fine, but the Outupt window displays the following.
sect1
sect1
sect1
sect1
sect1
sect1
sect1
sect1
sect1
sect1
sect1
sect1
[type Function]
Its as if the IF statement is written incorrectly and AS 2.0 can’t find the function. Does anyone know why this happens or how I can fix it?
function clearButton() {
for (i = 0; i < 12; i++) {
trace( _global.currentlyLoaded);
if(_global.currentlyLoaded != ["sect"+i] && _root.mcBody["buttonCell"+i]._currentframe == 10) {_root.mcBody["buttonCell"+i].gotoAndPlay(11); }
}
}