Flash MX 2004.
The TextAttrs object contains all the properties of text that can be applied to a subselection. This object is a property of the TextRun object (textRun.textAttrs).
The following properties are available for the TextAttrs object:
| Property | Description |
|---|---|
| textAttrs.aliasText | A Boolean value that specifies that Flash should draw the text using a method optimized for increasing the legibility of small text. |
| textAttrs.alignment | A string that specifies paragraph justification. Acceptable values are "left", "center", "right", and "justify". |
| textAttrs.autoKern | A Boolean value that determines whether Flash uses (true) or ignores (false) pair kerning information in the font(s) to kern the text. |
| textAttrs.bold | A Boolean value. A value of true causes text to appear with the bold version of the font. |
| textAttrs.characterPosition | A string that determines the baseline for the text. |
| textAttrs.characterSpacing | Deprecated in favor of textAttrs.letterSpacing. An integer that represents the space between characters. |
| textAttrs.face | A string that represents the name of the font, such as "Arial". |
| textAttrs.fillColor | A string, hexadecimal value, or integer that represents the fill color. |
| textAttrs.indent | An integer that specifies paragraph indentation. |
| textAttrs.italic | A Boolean value. A value of true causes text to appear with the italic version of the font. |
| textAttrs.leftMargin | An integer that specifies the paragraph’s left margin. |
| textAttrs.letterSpacing | An integer that represents the space between characters. |
| textAttrs.lineSpacing | An integer that specifies the line spacing (leading) of the paragraph |
| textAttrs.rightMargin | An integer that specifies the paragraph’s right margin. |
| textAttrs.rotation | A Boolean value. A value of true causes Flash to rotate the characters of the text 90°. The default value is false. |
| textAttrs.size | An integer that specifies the size of the font. |
| textAttrs.target | A string that represents the target property of the text field. |
| textAttrs.url | A string that represents the URL property of the text field. |