ColorMatrixFilter in Flash - add color, leave black
I have a MovieClip - for example a character's face. It has a black border and a brown fill (skin). I need to change the skin's color. I see 2 wa开发者_如何学Cys to go at it:
Use ColorTransform. But I need to have the skin in a separate MovieClip, so that I can change the skin's color alone, not the borders. It's kind of complicated. If i have some other elements, like semi transpatent shadows (they will stay brown).
Use something else (maybe ColorMatrixFilter)?
Check this link. It answers you question pretty thoroughly:
Changing fill color of MovieClip Actionscript 3
To sum it up; it looks like your first method would be the best route to take.
精彩评论