Flash 8 Documentation |
|||
| ActionScript 2.0 Language Reference > ActionScript classes > Selection | |||
Object
|
+-Selection
public class Selection
extends Object
The Selection class lets you set and control the text field in which the insertion point is located (that is, the field that has focus). Selection-span indexes are zero-based (for example, the first position is 0, the second position is 1, and so on).
There is no constructor function for the Selection class, because there can be only one currently focused field at a time.
Availability: ActionScript 1.0; Flash Player 5
Properties inherited from class Object
|
Event |
Description |
|---|---|
|
onSetFocus |
Notified when the input focus changes. |
|
Modifiers |
Signature |
Description |
|---|---|---|
|
|
addListener |
Registers an object to receive keyboard focus change notifications. |
|
|
getBeginIndex |
Returns the index at the beginning of the selection span. |
|
|
getCaretIndex |
Returns the index of the blinking insertion point (caret) position. |
|
|
getEndIndex |
Returns the ending index of the currently focused selection span. |
|
|
getFocus |
Returns a string specifying the target path of the object that has focus. |
|
|
removeListener |
Removes an object previously registered with |
|
|
setFocus |
Gives focus to the selectable (editable) text field, button, or movie clip, specified by the |
|
|
setSelection |
Sets the selection span of the currently focused text field. |
Methods inherited from class Object addProperty, hasOwnProperty, isPropertyEnumerable, isPrototypeOf, registerClass, toString, unwatch, valueOf, watch
Version 8
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/8/main/00002651.html