Having trouble understanding how to adjust the brightness of an object (in this case
a symbol from an imported Illustrator file). I’ve read the help sections on it but remain
clueless. Any help much appreciated!
I use this
const LUM_R:Number=0.212671,LUM_G:Number=0.715160,LUM_B:Number=0.072169;
var strength:Number=getStrength(),invert:Number=1 - strength,r:Number=0x00,g:Number=0x00,b:Number=0x00;
content.filters=[new ColorMatrixFilter([invert + strength * r * LUM_R, strength * r * LUM_G, strength * r * LUM_B, 0, 0, strength * g * LUM_R, invert + strength * g * LUM_G, strength * g * LUM_B, 0, 0, strength * b * LUM_R, strength * b * LUM_G, invert + strength * b * LUM_B, 0, 0, 0, 0, 0, 1, 0])];
getStrength() is a function returning var from -1 to 1
Thanks!
What is the syntax for applying this to a movieclip?
forgive the newbie question:)
And does that only work on bitmap?
content is your MovieClip
Thanks! Now I get it. Thank you very much!