# \[F8 & AS 2\]to much code

**URL:** <https://forum.kirupa.com/t/f8-as-2-to-much-code/195519>\
**Category:** flash\
**Created:** [August 1, 2006, 9:39am UTC](https://forum.kirupa.com/t/f8-as-2-to-much-code/195519 "2006-08-01T09:39:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mattiej](https://avatars.discourse-cdn.com/v4/letter/m/e8c25b/32.png) [@mattiej](https://forum.kirupa.com/u/mattiej)\
**Post date:** [August 1, 2006, 9:39am UTC](https://forum.kirupa.com/t/f8-as-2-to-much-code/195519/1 "2006-08-01T09:39:14Z")

</div>

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

```auto

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

```auto

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
