This property applies only to static text; it generates a warning if used with other text types.
Example
The following example selects the characters from index 2 up to, but not including, index 6 and
sets the
autoKern
fl.getDocumentDOM().setTextSelection(3, 6);
fl.getDocumentDOM().setElementTextAttr('autoKern', true);
textAttrs.bold
Availability
Flash MX 2004.
Usage
textAttrs.bold
Description
Property; a Boolean value. A value of
Example
The following example selects the first character of the selected text object and sets the
property to
true
fl.getDocumentDOM().setTextSelection(0, 1);
fl.getDocumentDOM().setElementTextAttr('bold', true);
textAttrs.characterPosition
Availability
Flash MX 2004.
Usage
textAttrs.characterPosition
Description
Property; a string that determines the baseline for the text. Acceptable values are
, and
"subscript"
Example
The following example selects the characters from index 2 up to, but not including, index 6 of the
selected text field and sets the
fl.getDocumentDOM().setTextSelection(2, 6);
fl.getDocumentDOM().setElementTextAttr("characterPosition", "subscript");
property to
:
true
true
:
. This property applies only to static text.
"superscript"
characterPosition
causes text to appear with the bold version of the font.
property to
"subscript"
bold
,
"normal"
:
TextAttrs object
301
Need help?
Do you have a question about the FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY and is the answer not in the manual?