03.05.2013 Views

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

|<br />

+-Selection<br />

public class Selection<br />

extends Object<br />

The Selection class lets you set <strong>and</strong> control the text field in which the insertion point is<br />

located (that is, the field that has focus). Selection-span indexes are zero-based (for example,<br />

the first position is 0, the second position is 1, <strong>and</strong> so on).<br />

There is no constructor function for the Selection class, because there can be only one<br />

currently focused field at a time.<br />

The Selection object is valid only when a device supports inline text entry. If a device does not<br />

support inline text entry, <strong>and</strong> instead relies on an FEP (front-end processor) to enter text, all<br />

calls to the Selection object are ignored.<br />

Property summary<br />

Properties inherited from class Object<br />

constructor (Object.constructor property), __proto__ (Object.__proto__<br />

property), prototype (Object.prototype property), __resolve<br />

(Object.__resolve property)<br />

Event summary<br />

Event Description<br />

onSetFocus = Notified when the input focus changes.<br />

function([oldfocus]<br />

, [newfocus]) {}<br />

Method summary<br />

Modifiers Signature Description<br />

static addListener(listener<br />

:Object) : Void<br />

Registers an object to receive keyboard focus<br />

change notifications.<br />

static getFocus() : String Returns a string specifying the target path of the<br />

object that has focus.<br />

static removeListener(liste<br />

ner:Object) :<br />

Boolean<br />

Removes an object previously registered with the<br />

Selection.addListener() method.<br />

Selection 543

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!