发光:
import flash.filters.GlowFilter;var target:MovieClip = MovieClip(e.currentTarget);target.filters = [new GlowFilter(0xff0000,1,15,15)];target.filters = [];chooseMc.filters = [new GlowFilter];
变色:
import flash.geom.ColorTransform;function chagneColor(mcChange:MovieClip,color:String){ var colorNum:uint; switch (color) { case "blue" : colorNum = 0x0061A2; break; case "black" : colorNum = 0x000000; break; case "brown" : colorNum = 0x7A401D; break; case "green" : colorNum = 0x00FF00; break; case "yellow" : colorNum = 0xBCAE07; break; case "orange" : colorNum = 0xF77B00; break; case "red" : colorNum = 0xFF0000; break; default : colorNum = 0xFFFFFF; } var colorForm:ColorTransform = new ColorTransform ; colorForm.color = colorNum; mcChange.transform.colorTransform = colorForm;}