1 Reply Latest reply on Nov 26, 2008 11:32 PM by kglad

    Changing text color

    dingle_berry
      I am using a countdown clock and would like to know how to change the color of the text based on the time on the clock. For example every time it hits 10 whether its in ms, sec, min etc. I would like the text to change from yellow to red then when it gets past zero I want it to reset to yellow. Any ideas on how to do this?

      Thanks
        • 1. Re: Changing text color
          kglad Adobe Community Professional & MVP
          use the textformat class to create a textformat instance. you can then assign the color property of that instance and use the setTextFormat() or setNewTextFormat() methods of textfields to assign the textformat to your textfield.