1、颜色值转换成字符串
public static function convertUintToString( color:uint ):String
{
return color.toString(16);
}
2、字符串转换成颜色值
public static function convertStringToUint(value:String, mask:String):uint
{
var colorString:String = "0x" + value;
var colorUint:uint = mx.core.Singleton.getInstance("mx.styles::IStyleManager2").getColorName( colorString );
return colorUint;
}