Thursday, December 17, 2009

change the color of your MovieClip

if you want to change the color of your MovieClip in flash
sample code:

//in as2.0

var colorTransform:Color = new Color("mc");
colorTransform.setRGB(0xFF00FF);



// in as3.0

var colorTransform:ColorTransform = mc.transform.colorTransform;
colorTransform.color = 0xFF00FF;
mc.transform.colorTransform = colorTransform;


after using this code your MovieClip will be changed in pink color. :)

No comments:

Post a Comment