• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 203
  • Last Modified:

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.

0
drewman75
Asked:
drewman75
  • 3
  • 2
1 Solution
 
negatyveCommented:
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?
0
 
drewman75Author Commented:
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
0
 
negatyveCommented:
Can you tell me something more about your movie?
0
Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

 
drewman75Author Commented:
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.
0
 
negatyveCommented:
Oh, ok, that was the missing link.. :) bye!
0
 
DarthModCommented:
PAQed with points (500) refunded

DarthMod
Community Support Moderator
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now