S > Selection.setSelection

Selection.setSelection

Syntax

Selection.setSelection(start, end);

Arguments

start The beginning index of the selection span.

end The ending index of the selection span.

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 argument, and end at the index specified in the end argument. Selection span indexes are zero-based (where 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.

Player

Flash 5 or later.