The width and height of a text field's rectangular display region can be set explicitly using the TextField class's instance variables width and height. : Size : TextField Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » TextField » Size »

 

The width and height of a text field's rectangular display region can be set explicitly using the TextField class's instance variables width and height.


 

package{
  import flash.display.Sprite;
    import flash.text.*;
  public class Main extends Sprite{
    public function Main(){
      var t:TextField = new TextField(  );
      t.width = 200;
      t.height = 50;
      t.border = true;
      t.background = true;
      addChild(t);
    }
  }
}

        



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


Flash / Flex / ActionScript examples

 Navioo TextField
» Size