3 Replies Latest reply on Sep 22, 2011 9:24 PM by narmathadevi

    Textbox Size

    narmathadevi

      Hai,

       

           In my application i am creating a "input" type text box in runtime but i dont know how to set the size of text and  textformat also i am using but it is not working.

       

      Ex:

          

          var txtFmt:TextFormat=new TextFormat();

       

          end_txt = completePage_mc.createTextField("end_txt",completePage_mc.getNextHighestDepth(),0,0,100,2 5);

          end_txt.type="input";

          end_txt.restrict = "0-9";

          end_txt.maxChars=5;

          end_txt.border=true;

          end_txt.borderColor="0x999999";

       

          txtFmt.size=20;

          txtFmt.font="Verdana";

          end_txt.setTextFormat(txtFmt);