S > Selection.setSelection |
![]() ![]() ![]() |
Selection.setSelection
Availability
Flash Player 5.
Usage
Selection.setSelection(
start, end
)
Parameters
start
The beginning index of the selection span.
end
The ending index of the selection span.
Returns
Nothing.
Description
Method; sets the selection span of the currently focused text field. The new selection span will begin at the index specified in the start
parameter, and end at the index specified in the end
parameter. Selection span indexes are zero-based (for example, the first position is 0, the second position is 1, and so on). This method has no effect if there is no currently focused text field.
![]() ![]() ![]() |