setColor(mc, 0xFF0000); //Changes the color of the movieclip to red
function setColor(mc, color):void {
var colorTransform:ColorTransform = mc.transform.colorTransform;
colorTransform.color = color;
mc.transform.colorTransform = colorTransform;
}
Welcome to my actionscript snippet library!
Actionscript Snips is a small repository of actionscript code that aims to save developers and designers time when developing a website.
Change The Color Of A Movie Clip
Posted by
admin
on Thursday, December 24, 2009
Labels:
MovieClip
0 comments:
Post a Comment