5 Replies Latest reply on Sep 18, 2007 7:07 AM by kglad

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

    _EnergiE_ Level 1
      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.