Working in AS2 here trying to make a simple function to change the color of an object passed to it. I'm not getting a complier error but it's not working either.
I'm using the function call below:PHP Code:import flash.geom.ColorTransform;
function color_change(color, mc) {
var colorTrans = new ColorTransform();
colorTrans.rgb = color;
mc.colorTransform = colorTrans;
}
Thanks for the help.PHP Code:change_color(0xFFFF00, _root.stabar);
