# Weird Array

**URL:** <https://forum.kirupa.com/t/weird-array/294063>\
**Category:** Uncategorized\
**Created:** [August 7, 2009, 6:10pm UTC](https://forum.kirupa.com/t/weird-array/294063 "2009-08-07T18:10:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Offrenbaruna](https://avatars.discourse-cdn.com/v4/letter/o/7cd45c/32.png) [@Offrenbaruna](https://forum.kirupa.com/u/Offrenbaruna)\
**Post date:** [August 7, 2009, 6:10pm UTC](https://forum.kirupa.com/t/weird-array/294063/1 "2009-08-07T18:10:42Z")

</div>

Hello forum, here I am again with another question this is more about a for loop.

Here my code

```php

function overFunction(){
        var tt:MovieClip = this
        for(var i=0; i<howManyThums ; i++){
             var t = tt ["thumMc" + i];
        }
        tooltip._x = this._x - 30;
        tooltip._alpha = 100;
        trace(tt)
    }

```

Now my question is, when I trace tt the result is this

```php

_level0.thumMc10
_level0.thumMc9
_level0.thumMc8
_level0.thumMc7
_level0.thumMc6
_level0.thumMc5
_level0.thumMc4
_level0.thumMc3
_level0.thumMc2
_level0.thumMc1
_level0.thumMc0

```

The think that I am trying to do is take the stack value of each MC that has been created in my for function let;s pretend the following result desired…

```php

_level0.thumMc10 = 10
_level0.thumMc9 = 9
_level0.thumMc8 = 8
_level0.thumMc7 = 7
_level0.thumMc6 = 6
_level0.thumMc5 = 5
_level0.thumMc4 = 4
_level0.thumMc3 = 3
_level0.thumMc2 = 2
_level0.thumMc1 = 1
_level0.thumMc0 = 0

```

… and have that value inside a variable…

```php

j = 10
 j = 9
 j = 8
 j = 7
 j = 6
 j = 5
 j = 4
 j = 3
 j = 2
 j = 1
 j = 0

```

Any input will be appreciated !!!:hugegrin:
