Textattrs.linespacing; Textattrs.rightmargin - 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

Description
Property; an integer that specifies the paragraph's left margin. Acceptable values are 0 through
720.
Example
The following example sets the
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("leftMargin", 100, 2, 8);

textAttrs.lineSpacing

Availability
Flash MX 2004.
Usage
textAttrs.lineSpacing
Description
Property; an integer that specifies the line spacing (leading) of the paragraph. Acceptable values
are -360 through 720.
Example
The following example sets the selected text field's
fl.getDocumentDOM().selection[0].setTextAttr("lineSpacing", 100);

textAttrs.rightMargin

Availability
Flash MX 2004.
Usage
textAttrs.rightMargin
Description
Property; an integer that specifies the paragraph's right margin. Acceptable values are 0 through
720.
Example
The following example sets the
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("rightMargin", 100, 2, 8);
304
Chapter 3: Objects
property of the selected text field from the character
leftMargin
lineSpacing
property of the selected text field from the character
rightMargin
property to 100:

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?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash mx 2004 - actionscript

Table of Contents