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


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;
}

0 comments:

Post a Comment