[F8 & AS 2]to much code

i’ve got this, and i need to do this a couple of times…
so i end up with alot of code


thumbHolder.thumbNail_mc00.secContainer._visible = true;
thumbHolder.thumbNail_mc01.secContainer._visible = true;
thumbHolder.thumbNail_mc02.secContainer._visible = true;
thumbHolder.thumbNail_mc03.secContainer._visible = true;
thumbHolder.thumbNail_mc04.secContainer._visible = true;
thumbHolder.thumbNail_mc05.secContainer._visible = true;

i’ve tried this but it didnt work for me


var holder0:Array = new Array
        for(p=0; p<6; p++) {
            holder0.push("thumbHolder.thumbNail_mc0"+p); 
        }
        for(p=0; p<6; p++) {
            holder1[p].secContainer._visible = true;
        }

please help, because my code is growing and growing :trout:

Matt