Set field type to Dynamic : type « TextField « Flash / Flex / ActionScript






Set field type to Dynamic

 
package {

  import flash.display.Sprite;
  import flash.text.TextField;
  import flash.text.TextFieldType;
    
  public class Main extends Sprite {
    public function Main(  ) {
      var field:TextField = new TextField(  );
     field.type = TextFieldType.DYNAMIC; 
     addChild(field);
    }
  }
}

        








Related examples in the same category