That is the decimal value of the color. To get the base 16 (hex) value you need to specify it...
test10 = (this["sub1a_txt"].backgroundColor).toString(16);
Thank you so much Ned - it works - it returns a value like >ff0000<
but I think the rest I can manage to make it >0xFF0000<
I hope you can help me again with this -
unfortunately still I do not get the right result - many times it returns a color like >0x9933<
This happens I guess when the first 2 digits are >0</ like >009933< > it will return >9933<
...but the right color should be >0x009933<
How could I correct this?
the code I have so far:
var mcolor:String =(this["sub1c_txt"].backgroundColor).toString(16);
test21 = ("0x"+mcolor.toUpperCase()).toString();
Put a conditional for your mcolor string to check its length after you assign it and if it is < 6, add zeroes to the front of it until it has a length of 6.
ok Ned, I will do that.
Thank you for the help.