Mar
18
Setting a Movieclip’s Color Dynamically With ColorTransform
Ok I always forget this so I’m gonna blog about it and hopefully it’ll stick.
If you want to dynamically change the color of a movieclip using hex values use this example
var c:ColorTransform = new ColorTransform(); c.color = 0xFFFFFF; box_mc.transform.colorTransform = c;
Similar Posts
June 3rd, 2008 at 12:59 pm
Thank you alot for this, god I’ve spent quite some time trying to find this.
October 14th, 2008 at 3:54 am
once you have dynamically changed a movieclip colour - it is possible to change it back to the original. Say the movieclip contained a .png or something?