this has been a long-standing problem for me in AS2.0 (flash 8). in the example below, I have 12 mClips named btn01-12. I cant seem to write functions that address the same script for all 12 in one loop. I've tried a for loop, where the var "btn0"+i yields a string, but it seems that the functions dont evaluate this as a mc instance name.

any ideas/ leads?

lloydie73


---------------------------------------------------------------
//FUNCTIONS
function rollerBtn(immune) {
if ((btn05._rotation == 0) && (immune != btn05) && (currentPage != "about")) {
new Tween(btn05.btnHeadOver, "_alpha", null, 100, 0, 5, false);
new Tween(btn05, "_rotation", null, 0, -67.5, 5, false);
}
if (btn06._rotation == 0 && immune != "btn06" && currentPage != "security") {
new Tween(btn06.btnHeadOver, "_alpha", null, 100, 0, 5, false);
new Tween(btn06, "_rotation", null, 0, -67.5, 5, false);
}
---------------------------------------------------------------