TextFormat.align
Availability
Flash Player 6.
Usage
my_fmt.align:String
Description
Property; indicates the alignment of the paragraph, represented as a string. The alignment of the
paragraph, represented as a string. If
paragraph is centered. If
indicates that the property is undefined.
Example
The following example creates a text field with a border and uses
the text.
var my_fmt:TextFormat = new TextFormat();
my_fmt.align = "center";
this.createTextField("my_txt", 1, 100, 100, 300, 100);
my_txt.multiline = true;
my_txt.wordWrap = true;
my_txt.border = true;
my_txt.text = "this is my first test field object text";
my_txt.setTextFormat(my_fmt);
, the paragraph is left-aligned. If
"left"
, the paragraph is right-aligned. The default value is
"right"
, the
"center"
null
to center
TextFormat.align
TextFormat.align
which
945
Need help?
Do you have a question about the FLASH MX 2004-ACTIONSCRIPT LANGUAGE and is the answer not in the manual?
Questions and answers