Another thought: I'm not sure whether myColor is retained as
a string or automatically parsed as a number when it comes into
flash. If its parsed as a number then you may want to convert it it
back to a hex string using .toString(16) .