![MACROMEDIA FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY Manual Download Page 314](http://html1.mh-extra.com/html/macromedia/flash-mx-2004-flash-javascript-dictionary/flash-mx-2004-flash-javascript-dictionary_manual_3377988314.webp)
314
Chapter 3: Objects
Example
The following example sets the value of the
maxCharacters
property to
30
:
fl.getDocumentDOM().selection[0].maxCharacters = 30;
text.orientation
Availability
Flash MX 2004.
Usage
text.orientation
Description
Property; a string that specifies the orientation of the text field. Acceptable values are
"horizontal"
,
"vertical left to right"
, and
"vertical right to left"
.
This property works only with static text; it generates a warning if used with other text types.
Example
The following example sets the orientation property to
"vertical right to left"
:
fl.getDocumentDOM().getTimeline().layers[0].frames[0].elements[0].orientation
= "vertical right to left";
text.renderAsHTML
Availability
Flash MX 2004.
Usage
text.renderAsHTML
Description
Property; a Boolean value. If the value is
true
, Flash draws the text as HTML and interprets
embedded HTML tags.
This property works only with dynamic or input text; it generates a warning if used with other
text types.
Example
The following example sets the
renderAsHTML
property to
true
:
fl.getDocumentDOM().selection[0].renderAsHTML = true;
Summary of Contents for FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY
Page 1: ...Flash JavaScript Dictionary ...
Page 16: ...16 Contents ...
Page 40: ...40 Chapter 2 Top level functions ...
Page 368: ...368 Chapter 3 Objects ...