Align Text in the TextField using ActionScript 3 in Flash Professional


Align Text in the TextField in ActionScript 3 little different than using ActionScript 2. Here is the list of samples to align text in the TextField using  ActionScript 3.

var txt:TextField= new TextField;

txt.text=”happy morning”;

txt.autoSize = TextFieldAutoSize.LEFT;


The above text in the TextField align towards left side.

here is the list other align methods


TextFieldAutoSize.NONE (default):

Note : Premium users can able to download all the scripts* without any waiting time. So please become premium user.    

If you want any of my script need to be customized according to your business requirement,

Please feel free to contact me [at] muni[at]

Note: But it will be charged based on your customization requirement

* - Except Invoice Script

Get Hottest Updates, Scripts & Other Useful Resources to your Email

Get Instant Script Download Access!