# \[Flash8\] undefined error

**URL:** <https://forum.kirupa.com/t/flash8-undefined-error/191700>\
**Category:** flash\
**Created:** [June 22, 2006, 11:18am UTC](https://forum.kirupa.com/t/flash8-undefined-error/191700 "2006-06-22T11:18:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joost\_Pastoor](https://avatars.discourse-cdn.com/v4/letter/j/f0a364/32.png) [@Joost\_Pastoor](https://forum.kirupa.com/u/Joost_Pastoor)\
**Post date:** [June 22, 2006, 11:18am UTC](https://forum.kirupa.com/t/flash8-undefined-error/191700/1 "2006-06-22T11:18:18Z")

</div>

Hi, I get a “undefined” for the var “\_root[“star” + i].adjustPosX” on the last line, how could that be?

Thanks in advance,  
Joost Pastoor

```auto
/* S T A R S */

    _root.starArr = new Array();
    for(i=0; i < _root.gb.cStars; i++)
    {
        starSize = Math.random()*40+10;
        
        _root.attachMovie("Star", "star" + i, 1000+1);
        _root["star" + i]._alpha = Math.random()*40+20;
        _root["star" + i]._xscale = _root.gb.starSize;
        _root["star" + i]._yscale = _root.gb.starSize;
        _root["star" + i].xPos = Math.random()*_root.gb.square;
        _root["star" + i].yPos = Math.random()*_root.gb.square;
        _root["star" + i].adjustPosX = 0;
        _root["star" + i].adjustPosY = 0;
        _root["star" + i].defAlpha = _root["star" + i]._alpha;
        
        _root.starArr* = _root["star" + i];
        
        _root["star" + i].onEnterFrame = function() {
            trace("enterframe" + _root["star" + i].adjustPosX);

```
