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
endIndex
including,
endIndex
Returns
A Boolean value:
true
Description
Method; sets the text selection of the currently selected text field to the values specified by the
and
startIndex
endIndex
Example
The following example selects the text from the 6th character through the 25th character:
fl.document.setTextSelection(5, 25);
document.setTextString()
Availability
Flash MX 2004.
Usage
document.setTextString( text [, startIndex [, endIndex]] )
Parameters
A string of the characters to insert in the text field.
text
An integer that specifies first character to replace. The first character position is
startIndex
0 (zero). This parameter is optional.
An integer that specifies the last character to replace. The first character position
endIndex
is 0 (zero). This parameter is optional.
162
Objects
. The first character position is 0 (zero).
if the method can successfully set the text selection;
values. Text editing is activated, if it isn't already.
otherwise.
false
Need help?
Do you have a question about the FLASH 8-EXTENDING FLASH and is the answer not in the manual?