Example
The following example sets the color of the selected text field from the character at index 2 up
to, but not including, the character at index 8 to red:
fl.getDocumentDOM().selection[0].setTextAttr("fillColor", 0xff0000, 2, 8);
textAttrs.indent
Availability
Flash MX 2004.
Usage
textAttrs.indent
Description
Property; an integer that specifies paragraph indentation. Acceptable values are -720
through 720.
Example
The following example sets the indentation of the selected text field from the character at
index 2 up to, but not including, the character at index 8 to 100. This can affect characters
outside the specified range if they are in the same paragraph.
fl.getDocumentDOM().selection[0].setTextAttr("indent", 100, 2, 8);
textAttrs.italic
Availability
Flash MX 2004.
Usage
textAttrs.italic
Description
Property; a Boolean value. A value of
causes text to appear with the italic version of
true
the font.
Example
The following example sets the selected text field to italic:
fl.getDocumentDOM().selection[0].setTextAttr("italic", true);
TextAttrs object
461
Need help?
Do you have a question about the FLASH 8-EXTENDING FLASH and is the answer not in the manual?
Questions and answers