# Create tweens in for-loop?

**URL:** https://forum.kirupa.com/t/create-tweens-in-for-loop/302775
**Category:** flash
**Created:** [January 7, 2010, 11:15am UTC](https://forum.kirupa.com/t/create-tweens-in-for-loop/302775 "2010-01-07T11:15:24Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![toffe](https://avatars.discourse-cdn.com/v4/letter/t/e19adc/32.png) [@toffe](https://forum.kirupa.com/u/toffe)
#### Post date: [January 7, 2010, 11:15am UTC](https://forum.kirupa.com/t/create-tweens-in-for-loop/302775/1 "2010-01-07T11:15:24Z")

</div>

How can I create several tweens with different names in a for-loop?

I want to create one tween named tween0, one tween named tween1 etc. up to tween9.

Like this: (This doesn’t work)

```auto
for(i=0; i<10; i++) {
   var ["tween" + i]:Tween = new Tween(...);
}

```

Any ideas?
