var str:String = '#223344'; str = str.substr(1, 7); var cl:uint = parseInt(str, 16); trace(cl.toString(16));