drewman75
asked on
Problem changing TextArea text color
Hello all,
I am a bit baffled. I am trying to change the text color of static text in a text area component. I have tried both of the following
upfront:
on (load) {_global.styles.TextArea.s etStyle("c olor",0xFF FFFF);}
I have a bunch of global style settings here and every other one works except this one
also on the screen where the text area resides:
myText.setStyle("color", 0xFFFFFF);
also
myText.setStyle("color", "#FFFFFF");
and finally
myText.setStyle("color", "0xFFFFFF");
Am I missing something here? as far as I know, at least one of these should work. I am flat out baffled.
I am a bit baffled. I am trying to change the text color of static text in a text area component. I have tried both of the following
upfront:
on (load) {_global.styles.TextArea.s
I have a bunch of global style settings here and every other one works except this one
also on the screen where the text area resides:
myText.setStyle("color", 0xFFFFFF);
also
myText.setStyle("color", "#FFFFFF");
and finally
myText.setStyle("color", "0xFFFFFF");
Am I missing something here? as far as I know, at least one of these should work. I am flat out baffled.
ASKER
yeah, everything looks correct. the
on (load) {_global.styles.TextArea.s etStyle("c olor",0xFF FFFF);}
is in with a bunch of other global style settings that work such as background transparency, font size, etc...
it is the only one that doesn't work
on (load) {_global.styles.TextArea.s
is in with a bunch of other global style settings that work such as background transparency, font size, etc...
it is the only one that doesn't work
Can you tell me something more about your movie?
ASKER
actually i got it. seems as though if you enable html for the text area component, then you cannot set anything related to font. i had to do it through css or in the html i place in the area itself.
Oh, ok, that was the missing link.. :) bye!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
myText.setStyle("color", 0xFFCC00);
And this one works too:
on (load) {_global.styles.TextArea.s
but the first take precedence. The error is not here. Can you give us other informations? Is the instance name correct?