linckx
June 4th, 2003, 05:36 AM
hi there...
I've got this function, in which I declare a variable...
according to that variable I want to adress an instancename...
but it doesn't work...
here's the code:
function holdUp(){
_root.lightUp="naam"+_root.index;
checkUp=_root.lightUp;
trace(checkUp);
_root.scroll.knoppen.checkUp._x=300;
}
_root.index is activated when a button is clicked, and on that same button (after the index is activated) this function is called.
I allready tried using a different variable (checkUp) because I thought It might have been that... but apparently it isn't...
what am I doing wrong?
robin
I've got this function, in which I declare a variable...
according to that variable I want to adress an instancename...
but it doesn't work...
here's the code:
function holdUp(){
_root.lightUp="naam"+_root.index;
checkUp=_root.lightUp;
trace(checkUp);
_root.scroll.knoppen.checkUp._x=300;
}
_root.index is activated when a button is clicked, and on that same button (after the index is activated) this function is called.
I allready tried using a different variable (checkUp) because I thought It might have been that... but apparently it isn't...
what am I doing wrong?
robin