So this should be easy, but my actionscripting is pretty rusty… i have a series of movie clip buttons that I am enabling through a for-loop. The problem is, when i try to access these mc’s, it isn’t recognizing that they even exist… heres the code…
for(i=1;i<=40;i++){
this.btnName=“btn”+i;
//trace(btnName);
trace(this["btn" + i]);
trace(btnName);
this["btn" + i].onRollOver = function(){
this["btn" + i].gotoAndStop(2);
trace(this["btn" + i]);
}
this["btn" + i].onRollOut = function(){
this["btn" + i].gotoAndStop(1);
}
this["btn" + i].onPress = function(){
this["btn" + i].gotoAndStop(1);
}
}
for(i=1;i<=40;i++){
this.btnName="btn"+i;
//trace(btnName);
trace(this["btn" + i]);
trace(btnName);
this["btn" + i].onRollOver = function(){
this["btn" + i].gotoAndStop(2);
trace(this["btn" + i]);
}
this["btn" + i].onRollOut = function(){
this["btn" + i].gotoAndStop(1);
}
this["btn" + i].onPress = function(){
this["btn" + i].gotoAndStop(1);
}
}