3 Replies Latest reply on Nov 14, 2006 6:40 PM by kglad

    Input text format issues

    waaby
      hi there,

      hoping someone can point me in right direction. Not sure why, but having a hard time setting the format for input text fields. when a user types there text. i am having no problems formatting other dynamic text fields in the same frame. here is my code, you can see i am setting up three instances, field1, field2, and field3. I have tried formatting within each createTextField specific to each instance and the code below tries to do it all at the end. Do i need to set the fieldx.text = ?

      thx...

      this.createTextField("field1", this.getNextHighestDepth(), 20, 60, 40, 20);
      field1.variable = "area_code";
      field1.type = "input";
      field1.border = true;
      field1.borderColor = 0xCCCCCC;
      field1.background = 0xFFFFFF;
      field1.maxChars = 3;

      this.createTextField("field2", this.getNextHighestDepth(), 85, 60, 40, 20);
      field2.variable = "prefix";
      field2.type = "input";
      field2.border = true;
      field2.borderColor = 0xCCCCCC;
      field2.background = 0xFFFFFF;
      field2.maxChars = 3;

      this.createTextField("field3", this.getNextHighestDepth(), 145, 60, 40, 20);
      field3.variable = "suffix";
      field3.type = "input";
      field3.border = true;
      field3.borderColor = 0xCCCCCC;
      field3.background = 0xFFFFFF;
      field3.maxChars = 4;

      var field_fmt:TextFormat = new TextFormat ();
      field_fmt.font = "Arial";
      field_fmt.size = 18;
      field_fmt.color = 0x000000;
      field1.setTextFormat (field_fmt);
      field2.setTextFormat (field_fmt);
      field3.setTextFormat (field_fmt);