TextAttrs object
303
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
true
causes text to appear with the italic version of the font.
Example
The following example sets the selected text field to italic:
fl.getDocumentDOM().selection[0].setTextAttr("italic", true);
textAttrs.leftMargin
Availability
Flash MX 2004.
Usage
textAttrs.leftMargin
Содержание FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY
Страница 1: ...Flash JavaScript Dictionary ...
Страница 16: ...16 Contents ...
Страница 40: ...40 Chapter 2 Top level functions ...
Страница 368: ...368 Chapter 3 Objects ...
Страница 386: ...386 Chapter 4 C Level Extensibility ...