I am trying to change the alpha of the hue using the ColorTransform class, is it possible to do this?
private function setColor(target:DisplayObject, color:uint, alpha:uint = 150) {
var colorTransform = new ColorTransform();
colorTransform.color = color;
colorTransform.alphaOffset = alpha;
target.transform.colorTransform = colorTransform;
}
However, when I try to use it, let's say
setColor(this, 0x333333, 100);
Does it seem like I'm getting a solid dark gray instead of a partially transparent hue?
source
share