Problem changing TextArea text color

Posted on 2005-04-19
Medium Priority
Last Modified: 2010-04-03
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

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);


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.

Question by:drewman75
  • 3
  • 2
LVL 27

Expert Comment

ID: 13818345
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?

Author Comment

ID: 13819501
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
LVL 27

Expert Comment

ID: 13820252
Can you tell me something more about your movie?
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Author Comment

ID: 13824080
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.
LVL 27

Expert Comment

ID: 13824213
Oh, ok, that was the missing link.. :) bye!

Accepted Solution

DarthMod earned 0 total points
ID: 15659522
PAQed with points (500) refunded

Community Support Moderator

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question