Flash CS3 Documentation |
|||
| ActionScript 2.0 Language Reference > ActionScript classes > TextFormat > 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 Player 6
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 test field object text";
mytext.setTextFormat(myformat);
Flash CS3