Link to home
Start Free TrialLog in
Avatar of drewman75
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.setStyle("color",0xFFFFFF);}

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.

Avatar of negatyve
negatyve

This one is correct:

myText.setStyle("color", 0xFFCC00);

And this one works too:

on (load) {_global.styles.TextArea.setStyle("color",0xFFFFFF);}

but the first take precedence. The error is not here. Can you give us other informations? Is the instance name correct?
Avatar of drewman75

ASKER

yeah, everything looks correct.  the

 on (load) {_global.styles.TextArea.setStyle("color",0xFFFFFF);}

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?
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
Avatar of DarthMod
DarthMod
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial