1 Reply Latest reply on Oct 8, 2010 5:00 AM by Ned Murphy

    How to set TextFormat to an InputTextfield in AS3.0?

    santhosh kumar mallepaddy

      Hi all,

       

      I am trying to set the new TextFormat Object to an dynamically created Input TextField, using setTextFormat() methoad.

      But its not working.My code is here, can any one tell me the mistake which I made in this.

       

      var tft:TextFormat=new TextFormat()
      var type_txt:TextField=new TextField()

       

      tft.size=20
      tft.color=0xff6600

       

      type_txt.width=450
      type_txt.height=250
      type_txt.x=48
      type_txt.y=68
      type_txt.border=true
      type_txt.type="input"

       

      addChild(type_txt)

       

      type_txt.setTextFormat(tft)

       

       

      thanks in adwance


      Santhosh.