Flash CS3 Documentation |
|||
| ActionScript 2.0 Language Reference > ActionScript classes > TextFormat > indent (TextFormat.indent property) | |||
public indent : Number
An integer that indicates the indentation from the left margin to the first character in the paragraph. A positive value indicates normal indentation. You can use a negative value, but the negative indentation only applies if the left margin is greater than 0. To set the margin greater than 0, use the indent property or the blockIndent property of the TextFormat object. The default value is null, which indicates that the property is undefined.
Availability: ActionScript 1.0; Flash Player 6 - The ability to use negative values is available as of Flash Player 8.
The following example creates a text field and sets the indentation to 10:
this.createTextField("mytext",1,100,100,100,100);
mytext.multiline = true;
mytext.wordWrap = true;
mytext.border = true;
var myformat:TextFormat = new TextFormat();
myformat.indent = 10;
mytext.text = "this is my first test field object text";
mytext.setTextFormat(myformat);
blockIndent (TextFormat.blockIndent property)
Flash CS3