设置元件的颜色

代码如下:

import flash.geom.ColorTransform;
var colorInfo:ColorTransform = mymc.getChildAt(0).transform.colorTransform;
colorInfo.color = (Math.random() * 0xffffff + 0xff0000);//TodayJobXMLList[i].@JobColor;
mymc.getChildAt(0).transform.colorTransform = colorInfo;
原文地址:https://www.cnblogs.com/wqing/p/2393969.html