 <p>Here you are 2 of my utils functions:</p> <pre><code> public static function convertUintToString( color:uint ):String { return color.toString(16); } 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; } </code></pre>