Textattrs.indent; Textattrs.italic; Textattrs.leftmargin - MACROMEDIA FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY Manual

Flash javascript dictionary
Hide thumbs Also See for FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY:
Table of Contents

Advertisement

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
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
causes text to appear with the italic version of the font.
true
TextAttrs object
303

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash mx 2004 - actionscript

Table of Contents