Hi all,
I’m having problems in setting three variables using a for loop and then passing these variables to my function. I think it’s something to do with the set function I’m using, because my colorFadeTo function claims it’s being passed an undefined variable.
Can anyone lend a hand?
for (var i=0; i<circles.length; i++) {
var current = circles*;
set (eval("colorVarAsp"+i), new Color(current.background_mc));
current.onRollOver = function():Void {
eval("colorVarAsp"+i).setRGB(0x003399);
trace("colorVarAsp"+i)
colorFadeTo(eval("colorVarAsp"+i));
};
current.onRollOut = function():Void {;
colorFadeAway(eval("colorVarAsp"+i));
};
current.onRelease = function():Void {
trace("circle: "+this);
};
};
Cheers!
:red: