User Guide
456 Objects
TextAttrs object
Availability
Flash MX 2004.
Description
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).
Property summary for the TextAttrs object
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.
CHAPTER 41
Objects