1 Reply Latest reply on May 29, 2006 3:48 AM by Newsgroup_User

    affect color of my text

    Level 7
      Hello,

      I have a color button (name of my button is bleu) and I would affect this
      color to my text (txt is the name of my text) I use this function but it's
      not ok why ?

      mycolor = new Color(txt);
      mycolor.setRGB(bleu.getStyle("color"));

      Please could you help me ?

      thank you


        • 1. Re: affect color of my text
          Level 7
          Color class is intended to use with movie clips not texts fields. use
          TextFormat class or styles.

          BTW, Color class is deprecated in player 8, in favor of
          flash.geom.ColorTransform class

          Dave wrote:
          > Hello,
          >
          > I have a color button (name of my button is bleu) and I would affect this
          > color to my text (txt is the name of my text) I use this function but it's
          > not ok why ?
          >
          > mycolor = new Color(txt);
          > mycolor.setRGB(bleu.getStyle("color"));
          >
          > Please could you help me ?
          >
          > thank you
          >
          >