# Generated Variables (Non hand-coded names)

**URL:** <https://forum.kirupa.com/t/generated-variables-non-hand-coded-names/210544>\
**Category:** flash\
**Created:** [December 19, 2006, 9:18pm UTC](https://forum.kirupa.com/t/generated-variables-non-hand-coded-names/210544 "2006-12-19T21:18:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RonH](https://avatars.discourse-cdn.com/v4/letter/r/bcef8e/32.png) [@RonH](https://forum.kirupa.com/u/RonH)\
**Post date:** [December 19, 2006, 9:18pm UTC](https://forum.kirupa.com/t/generated-variables-non-hand-coded-names/210544/1 "2006-12-19T21:18:50Z")

</div>

Hello Everyone.  
I need your help. Please view the example code below to figure out what I am trying to do:

```auto

for(i = 0; i < 10; i++){
_root.attachMovie("name", "name"+i; i);
}

```

Well, I want a variable to be made for each of those movieclips. I was thinking…

```auto

var "nameVar"+i;

```

But that doesn’t work. Can this be done? Thanks for all of the help in advance. 😃
