# Variable name in for loop?

**URL:** <https://forum.kirupa.com/t/variable-name-in-for-loop/291165>\
**Category:** flash\
**Created:** [June 25, 2009, 4:57pm UTC](https://forum.kirupa.com/t/variable-name-in-for-loop/291165 "2009-06-25T16:57:34Z")\
**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:** [June 25, 2009, 4:57pm UTC](https://forum.kirupa.com/t/variable-name-in-for-loop/291165/1 "2009-06-25T16:57:34Z")

</div>

I want to create several variables (actually tween objects) in a for loop. I want the variables to get names like “variable1” when i =1, “variable2” when i = 2 etc.

for(i=0; i\<10; i++) {

}

How do i do this?
