I have a spritesheet for a project I am working on and I need to be able to change the tint of the image so I can se space. The image has some simple texture on it but it will be displayed in 5 different colors. I attached an image to see exactly what I am talking about: http://i42.tinypic.com/29443l5.png
I tried to achieve my desired effect using this on the resulting sprite:
var c:ColorTransform = new ColorTransform();
c.color = 0xf30909;
transform.colorTransform = c;
But I get everything red, not as I want. I am building for AIR so the package fl.motion.Color can’t be imported (or at least Flash Builder 4.5 does not have it). Any idea on how I can achieve the desired effect? Thanks.
The
colorproperty sets the offset, i.e. it makes theColorTransformadd the color value to your image. You probably want to use theMultiplierproperties. See ColorTransform documentation.