RGB colors are represented by hexadecimal digits (base 16).
Base 16 means that each place in a number can represent numbers 0-15 in the following order:
0 1 2 3 4 5 6 7 8 9 ABCDEF
Using 0x in AS3 is a hexadecimal number. As an example, run this:
trace(0xF);
The output you see is presented in decimal (base 10). What you see above in your question is a decimal representation of your colors.
If you want to see the hex version, use toString() and parse 16 as a radix parameter. You will notice that the default is 10 (for the base 10 / decimal numbers that we all know and love).
var num:int = 15; trace(num.toString(16));
Hope this makes sense.
Marty source share