Applying Color Changes
O’Reilly’s “ActionScript 3.0 Cookbook” states in section 10.1 that this is the way to do a color transform:
var color:ColorTransform = sampleSprite.transform.colorTransform;
color.rgb = 0xFFFFFF;
sampleSprite.transform.colorTransform = color;
THIS IS INCORRECT, however. The ColorTransform class doesn’t appear to actually have an “rgb” property. Following is what appears to be correct:
var color:ColorTransform = sampleSprite.transform.colorTransform;
color.color = 0xFFFFFF;
sampleSprite.transform.colorTransform = color;