TextFieldAutoSize.RIGHT : autosize « TextField « Flash / Flex / ActionScript






TextFieldAutoSize.RIGHT

 

package {

  import flash.display.Sprite;
  import flash.text.TextField;
  public class Main extends Sprite {
    public function Main(  ) {
      var field:TextField = new TextField(  );
   
      field.autoSize = flash.text.TextFieldAutoSize.RIGHT;

      field.text = "text text text text text text text text text text text text text text text text text text text text text text text text text ";

      addChild(field);
    }
  }
}

        








Related examples in the same category

1.Sizing Text Fields to Fit Contents
2.TextFieldAutoSize.CENTER
3.TextFieldAutoSize.LEFT