I am tinting some MC items in my application using:
Color.prototype.setTint = function (r, g, b, amount) {
var trans = new Object();
trans.ra = trans.ga = trans.ba = 100 - amount;
var ratio = amount / 100;
trans.rb = r * ratio;
trans.gb = g * ratio;
trans.bb = b * ratio;
this.setTransform(trans);
}
When I rollover some of these MC I am adding a glow using:
var gf:GlowFilter = new GlowFilter(globalColor2, 100, 100, 100, 5, 3, false, false);
topLeft_mc.filters = [gf];
The tint colors of the MC can be different at different states and I would like the glow to work off color the MC is tinted.
How do I get the color I tinted the MC from the MC so I dont have to hardcode or track it?
Thanks for your help in advance!
GBY,
-R