User Guide
576 ActionScript classes
Method summary
Methods inherited from class Object
addListener (Selection.addListener method)
public static addListener(listener:Object) : Void
Registers an object to receive keyboard focus change notifications. When the focus changes
(for example, whenever
Selection.setFocus() is invoked), all listening objects registered
with
addListener() have their onSetFocus method invoked. Multiple objects may listen for
focus change notifications. If the specified listener is already registered, no change occurs.
Availability: ActionScript 1.0; Flash Lite 2.0
Parameters
listener:Object - A new object with an onSetFocus method.
Modifiers Signature Description
static addListener(listener:Object) : Void Registers an object to receive
keyboard focus change
notifications.
static getFocus() : String Returns a string specifying the
target path of the object that has
focus.
static removeListener(listener:Object) :
Boolean
Removes an object previously
registered with
Selection.addListener().
static setFocus(newFocus:Object) : Boolean Gives focus to the selectable
(editable) text field, button, or movie
clip, specified by the newFocus
parameter.
addProperty (Object.addProperty method), hasOwnProperty
(Object.hasOwnProperty method), isPropertyEnumerable
(Object.isPropertyEnumerable method), isPrototypeOf (Object.isPrototypeOf
method), registerClass (Object.registerClass method), toString
(Object.toString method), unwatch (Object.unwatch method), valueOf
(Object.valueOf method), watch (Object.watch method)