just an ordinary function()
But it doesn't work, I've been going nuts over this a while now..Code:
------------------------------------
depth=0;
for (i=0; i<8; i+=2) {
_root.attachMovie("singleHouse", "sh"+i, i+1);
_root.attachMovie("sh1Shade", "sh1Shade"+i, i);
height = random(50) +70;
_root["sh"+i]._yscale = height
_root["sh1Shade"+i]._yscale = height
depth-=10;
_root["sh"+i]._y = 360 - depth;
_root["sh1Shade"+i]._y = 360 - depth;
_root["sh"+i]._x = random(400) +580;
}
// HERE IS THE CALL
_root.sh1Shade0.nr();
------------------------------------------
//AND HERE IS THE FUNCTION
function nr(){
trace("it works");
}
this.onEnterFrame = function(){
this._x = _root["sh"+nummer]._x + ((_root["sh"+nummer]._x / 10) - 30)*-1;
}
--------------------------------------------
I've checked spelling, checked that it actually exists, simplified to a ridiculous level, and it still doesn't work!
Does anyone know why?
/ Jacob