Parameters
boundingRectangle
item should flow.
Returns
A Boolean value:
Description
Method; changes the bounding rectangle for the selected text item to the specified size. This
method causes the text to reflow inside the new rectangle; the text item is not scaled or
transformed. If the text is horizontal and static, the method takes into account only the width of
the rectangle (the height is automatically computed to fit all the text). If the text is vertical, the
method takes into account only the height of the rectangle (the width is automatically computed
to fit all the text). If the text is dynamic or input, the method is limited by the width and height
of the rectangle, but the text field is constrained to fit all the text.
Example
The following example changes the size of the bounding text rectangle to the specified
dimensions:
fl.getDocumentDOM().setTextRectangle({left:0, top:0, right:50, bottom:200})
document.setTextSelection()
Availability
Flash MX 2004.
Usage
document.setTextSelection( startIndex, endIndex )
Parameters
An integer that specifies the position of the first character to select. The first
startIndex
character position is 0 (zero).
An integer that specifies the end position of the selection up to, but not including,
endIndex
. The first character position is 0 (zero).
endIndex
Returns
A Boolean value:
Description
Method; sets the text selection of the currently selected text field to the values specified by the
and
startIndex
Example
The following example selects the text from the 6th character through the 25th character:
fl.document.setTextSelection(5, 25);
124
Chapter 3: Objects
A text rectangle object that specifies the new size within which the text
if the size of at least one text field is changed;
true
if the method can successfully set the text selection;
true
values. Text editing is activated, if it isn't already.
endIndex
otherwise.
false
otherwise.
false
Need help?
Do you have a question about the FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY and is the answer not in the manual?