TextAttrs object
305
textAttrs.rotation
Availability
Flash MX 2004.
Usage
textAttrs.rotation
Description
Property; a Boolean value. A value of
true
causes Flash to rotate the characters of the text 90º.
The default value is
false
. This property applies only to static text with a vertical orientation; it
generates a warning if used with other text types.
Example
The following example sets the rotation of the selected text field to
true
:
fl.getDocumentDOM().setElementTextAttr("rotation", true);
textAttrs.size
Availability
Flash MX 2004.
Usage
textAttrs.size
Description
Property; an integer that specifies the size of the font.
Example
The following example retrieves the size of the character at index 2 and shows the result in the
Output panel:
fl.outputPanel.trace(fl.getDocumentDOM().selection[0].getTextAttr("size", 2));
textAttrs.target
Availability
Flash MX 2004.
Usage
textAttrs.target
Description
Property; a string that represents the
target
property of the text field. This property works only
with static text.
Содержание FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY
Страница 1: ...Flash JavaScript Dictionary ...
Страница 16: ...16 Contents ...
Страница 40: ...40 Chapter 2 Top level functions ...
Страница 368: ...368 Chapter 3 Objects ...
Страница 386: ...386 Chapter 4 C Level Extensibility ...