Posted By

visualadvance on 06/09/09


Tagged

actionscript 3 tint ColorTransform


Versions (?)

Who likes this?

5 people have marked this snippet as a favorite

flashinit
mattlohmann
sultano
TrentSkunk
tspitzr


AS3: Tint


 / Published in: ActionScript 3
 

  1. private function tint (clip:Object, newColor:Number):void
  2. {
  3. var colorTransform:ColorTransform=clip.transform.colorTransform;
  4. colorTransform.color=newColor;
  5. clip.transform.colorTransform=colorTransform;
  6. }

Report this snippet  

You need to login to post a comment.