Wednesday, April 8, 2009

Changing the Color of A Movieclip

Code to change the color of a movie clip to red.
import flash.geom.ColorTransform;
var mc:MovieClip;
var ct:ColorTransform = new ColorTransform();
ct.rgb = 0xFF0000;
mc.transform.colorTransform = ct;

0 comments: