3 Replies Latest reply on Mar 21, 2008 5:24 AM by 0degreesK

    Form Field Styling (Input Text formatting)

      Is there a way to format multiple form fields (input text) at the same time? For instance, I have a form with 10 input text fields and I want all of them to have black borders and gray backgrounds. To do this, I've coded one as:
      txtInput1.border = true;
      txtInput1.borderColor = 0x000000;
      txtInput1.background = true;
      txtInput1.backgroundColor = 0xCCCCCC;

      Is there a way for me to create a sort of "style" that I could apply all of these values to a text input easily, the way TextFormat can apply text styles?