# \[AS3\] Dynamic create items with for loop

**URL:** <https://forum.kirupa.com/t/as3-dynamic-create-items-with-for-loop/214639>\
**Category:** flash\
**Created:** [January 30, 2007, 7:08pm UTC](https://forum.kirupa.com/t/as3-dynamic-create-items-with-for-loop/214639 "2007-01-30T19:08:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Knorcedger](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/knorcedger/32/1244_2.png) [@Knorcedger](https://forum.kirupa.com/u/Knorcedger)\
**Post date:** [January 30, 2007, 7:08pm UTC](https://forum.kirupa.com/t/as3-dynamic-create-items-with-for-loop/214639/1 "2007-01-30T19:08:43Z")

</div>

Well, i have this line of code

```auto
var t1:thumbBack = addChild(new thumbBack(x, y));

```

And i want to create many thumbBacks with names t1, t2, t3… with a for loop. Is this possible?

I tried something like this, but it doesnt seem to work

```auto

for(i=0; i<8; i++){
    var this["t"+i]:thumbBack = addChild(new thumbBack(10 + i*200 , y));
}

```

Any other ideas?
