Posted By

ricosushi on 07/14/10


Tagged

color


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

ricosushi


Movieclip color setter


 / Published in: ActionScript
 

Set a color to a target movie clip

  1. // set color to target movieclip
  2. function setColor(color:Number, target:MovieClip):Void {
  3. var myColor = new Color(target);
  4. myColor.setRGB(color);
  5. }
  6.  
  7.  
  8. // usage
  9. setColor(0xFF00FF, my_movie_MC);

Report this snippet  

You need to login to post a comment.