698
ActionScript classes
The default value is
null
, which indicates that the property is undefined.
Availability:
ActionScript 1.0; Flash Lite 2.0
Example
The following example creates a text field with a border and uses
TextFormat.align
to
center 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 text field object text";
my_txt.setTextFormat(my_fmt);
blockIndent (TextFormat.blockIndent property)
public blockIndent :
Number
A number that indicates the block indentation in points. Block indentation is applied to an
entire block of text; that is, to all lines of the text. In contrast, normal indentation
(
TextFormat.indent
) affects only the first line of each paragraph. If this property is
null
,
the TextFormat object does not specify block indentation.
Availability:
ActionScript 1.0; Flash Lite 2.0
Example
This example creates a text field with a border and sets the blockIndent to 20.
this.createTextField("mytext",1,100,100,100,100);
mytext.multiline = true;
mytext.wordWrap = true;
mytext.border = true;
var myformat:TextFormat = new TextFormat();
myformat.blockIndent = 20;
mytext.text = "This is my first text field object text";
mytext.setTextFormat(myformat);
Summary of Contents for FLASHLITE2 ACTIONSCRIPT-LANGUAGE
Page 1: ...Flash Lite 2 x ActionScript Language Reference...
Page 22: ...22 Contents...
Page 244: ...244 ActionScript language elements...
Page 760: ...760 ActionScript classes...