I'm having trouble making this function dynamic. I've done similar code before, why doesn't this work?
Code:function makeSmall(){
for(i=1;i<=samples.length;i++){
with(windows){
this["w"+i].winOff();
trace(this["w"+i]);
}
}
//windows.w1.winOff();
//windows.w2.winOff();
//windows.w3.winOff();
//windows.w4.winOff();
//windows.w5.winOff();
//windows.w6.winOff();
//windows.w7.winOff();
//windows.w8.winOff();
}
