Posted By

FlashJunior on 08/06/08


Tagged


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

jeeStyle


Set a color to an MC


 / Published in: ActionScript
 

Set a color to a MovieClip

  1. AS3
  2. //import flash.geom.ColorTransform;
  3. var color_transf:ColorTransform = mc.transform.colorTransform;
  4. color_transf.color = 0xff0000;
  5. mc.transform.colorTransform = color_transf;
  6.  
  7. AS2
  8. new Color(mc).setRGB(0xff0000);

Report this snippet  

You need to login to post a comment.