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;
Tagged with:


 

 

 

comments

2 Responses to “Setting a Movieclip’s Color Dynamically With ColorTransform”

  1. Sebastian Nyberg Says:

    Thank you alot for this, god I’ve spent quite some time trying to find this.

  2. Jake Says:

    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?

leave a reply