Skip to main content
Inspiring
September 14, 2007
Question

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

  • September 14, 2007
  • 3 replies
  • 392 views
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.
This topic has been closed for replies.

3 replies

kglad
Community Expert
Community Expert
September 18, 2007
no.
kglad
Community Expert
Community Expert
September 18, 2007
masked text must use an embedded font whether in a textarea component or a textfield to be visible.
_EnergiE_Author
Inspiring
September 18, 2007
Well kglad, but I haven't changed the font for the TextArea. Isn't it _sans by default and therefore without the need to be embedded?
kglad
Community Expert
Community Expert
September 15, 2007
they both work for me.
_EnergiE_Author
Inspiring
September 17, 2007
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 !! :)