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

One Response 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.

leave a reply