2 Replies Latest reply on Aug 26, 2009 6:38 AM by alexManuelSilva

    textField size

    alexManuelSilva

           When creating a new TextField dinamically, is there a property that automatically adjusts the width to the content or is it always necessary to have  txt_field.width = ...?

       

      my text field:

       

         txt_field = new TextField();
         txt_field.wordWrap=true;
         txt_field.text = source;
         txt_field.autoSize=TextFieldAutoSize.LEFT;
         txt_field.mouseEnabled=false;

       

      thanks

      Alex