convert colors rgb string ("#FFFFFF") to uint
var theColor:uint; if (rgb != null) theColor = uint("0x" + rgb.substr(1));