Flash Lite 2.x and 3 Help

Selection class

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).

Partial support for the Selection class was added to support inline text input in Flash Lite 2.1. For Flash Lite, the Selection object is valid only when a device supports inline text entry. If a device does not support inline text entry, and instead relies on an FEP (front-end processor) to enter text, all calls to the Selection object are ignored.

For more information about the Selection class, see the following references:

  • Developing Flash Lite 2.x and 3.0 Applications
  • Chapter 2, "ActionScript Classes," in Flash Lite 2.x and 3.0 ActionScript Language Reference

Method summary

The following table lists the methods that are unsupported by the Selection class when using ActionScript for Flash Lite 2.x and later.

Method

Description

getBeginIndex()

Returns the index at the beginning of the currently focused selection span.

getCaretIndex()

Returns the index of the blinking insertion point (caret) position.

getEndIndex

Returns the index at the end of the currently focused selection span.

 

Send me an e-mail when comments are added to this page | Comment Report