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
/* 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);