I want to specify the color of a text box via XML. My variable that equals the color is:
_root.titleColor0 (which is defined as 0xFF0000 in the XML)
I want to affect the text box this way:
_parent.topText = "<P ALIGN=\"CENTER\"><FONT FACE='Verdana' SIZE='14' COLOR= _root.titleColor0 >" + "My text string here";
That doesn't work. I can trace _root.titleColor0 just fine to equal "0xFF0000", so, I think I'm having a problem with data typing. I've tried forcing it to be a String and a number, but no luck.
I've also tried using the instance name of the text box and setRGB like
var my_color:Color = new Color(_parent.topTextMc);
No luck with that either. If I change either of the above to 0xFF0000, it works fine. What's the solution please?