Method summary
Modifiers
Signature
static
addListener(listener:Object) :
static
getFocus() :
static
removeListener(listener:Object) :
Boolean
static
setFocus(newFocus:Object) :
Methods inherited from class Object
addProperty (Object.addProperty
(Object.hasOwnProperty
(Object.isPropertyEnumerable
method),
registerClass (Object.registerClass
(Object.toString
(Object.valueOf
method),
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
with
addListener()
focus change notifications. If the specified listener is already registered, no change occurs.
Availability: ActionScript 1.0; Flash Lite 2.0
Parameters
- A new object with an
listener:Object
576
ActionScript classes
String
method),
method),
isPropertyEnumerable
method),
method),
unwatch (Object.unwatch
watch (Object.watch method)
Selection.setFocus()
have their
onSetFocus
Description
Registers an object to receive
Void
keyboard focus change
notifications.
Returns a string specifying the
target path of the object that has
focus.
Removes an object previously
registered with
Selection.addListener().
Gives focus to the selectable
Boolean
(editable) text field, button, or movie
clip, specified by the newFocus
parameter.
hasOwnProperty
isPrototypeOf (Object.isPrototypeOf
method),
method),
is invoked), all listening objects registered
method invoked. Multiple objects may listen for
method.
onSetFocus
toString
valueOf
Need help?
Do you have a question about the FLASHLITE2 ACTIONSCRIPT-LANGUAGE and is the answer not in the manual?
Questions and answers