The code from "help" doesn't work?\

Hi
I'm trying to change the color of the font of the TextArea
component to white. I use this code which I copy and paste directly
from "help":
import mx.styles.CSSStyleDeclaration;
if (_global.styles.TextArea == undefined) {
_global.styles.TextArea = new CSSStyleDeclaration();
_global.styles.TextArea.setStyle("color", 0xFFFFFF);
Doesn't work...
I try this one, again from the "help":
myTextAreaComponent.setStyle("color", 0xFFFFFF)
Again doesn't work...
Any clue????
Also, if a movie with a TextArea component is under a mask
the text isn't seen. What can I do about it? But this is a less
significant problem, the color of the text is what concerns me
most.

Yes, kglad I tried this in a new document, and it works.
Don't know why it didn't work for the old one. Maybe I've mistaken
something...somewhere... who knows... Anyway, I don't need the text
white anymore, because I redesigned everything and I think it looks
better now, so it's not a problem.
Can you advize me something on the mask issue? It's not so
important but I'm curious. It could turn to be a problem if you
have a fullscreen flash movie and have content out of the stage.
Thanks!
Btw, just saw the spyrograph on your website. Looks
absolutely amazing !! :)

Similar Messages

Maybe you are looking for