var theColor=new ColorTransform;
theColor.color = 0xFF0088;
ball.transform.colorTransform=theColor;
改变物件颜色偏移量:
var color1:ColorTransform = new ColorTransform(1, 1, 1, 1, 55, 0, 55, 0);
ball.transform.colorTransform= color1
///括号中参数依次为 红、绿、蓝、透明乘量(-100~100),红、绿、蓝、透明偏移量(-255~255)。
评论读取中...