Wednesday, May 13, 2009

Tint MovieClip using AS 3

/* create a movie clip and name it as "mc".(instant name).Paste the following code in the timeline.ur movie clip will turn in to red(0xFF0000).Change the values as u like and try. */


import fl.motion.Color;

var aa:Color = new Color();
aa.setTint(0xFF0000, 0.9);
mc.transform.colorTransform = aa;

No comments: