Guys + Gals - I could really do with some help on why this code doesn’t work I’m sure its a referencing problem in the bottom (for-if-loop) but I can’t crack it - would appreciate any help - PLEASE!
ycord = new Array();
xcord = new Array();
//saves original stage coords.
for(a=1;a<14;a++)
{
ycord[a] = _root["movie"]["tap"]["a"+a]._y;
xcord[a] = _root["movie"]["tap"]["a"+a]._x;
}
for(z=1;z<14;z++)
{
//onRollOver move boxes to another position
_root["movie"]["tap"]["a"+z].onRollOver = function(){
this.useHandCursor=false;
_root["movie"]["tap"]["a"+z].tween("_y", -900, 0.5, "easeOut");
}
//onRollOut move boxes to original stage coords
_root["movie"]["tap"]["a"+z].onRollOut = function(){
_root["movie"]["tap"]["a"+z].tween("_y", _root.ycord[z], "easeOut");
}
}