Posted By

heathbo on 10/05/10


Tagged


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

tombarc


How to change the color of a MovieClip or text through code


 / Published in: ActionScript 3
 

The Offset equals the difference between the current color and what you want it to be.

  1. var color1:ColorTransform = new ColorTransform();
  2.  
  3. color1.redOffset = 137;
  4. color1.greenOffset = 36;
  5. color1.blueOffset = -30;
  6.  
  7. this.transform.colorTransform = color1;

Report this snippet  

You need to login to post a comment.