Addlistener (Key.addlistener Method) - MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE Reference

Flash lite 2.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE:
Table of Contents

Advertisement

Method summary
Modifiers
Signature
static
addListener(listener:Object) :
Void
static
getAscii() :
static
getCode() :
static
isDown(code:Number) :
static
removeListener(listener:Object) :
Boolean
Methods inherited from class Object
addProperty (Object.addProperty
(Object.hasOwnProperty
(Object.isPropertyEnumerable
method),
registerClass (Object.registerClass
(Object.toString
(Object.valueOf
method),

addListener (Key.addListener method)

public static addListener(listener:Object) : Void
Registers an object to receive
released, regardless of the input focus, all listening objects registered with
have either their
onKeyDown
listen for keyboard notifications. If the listener is already registered, no change occurs.
Availability: ActionScript 1.0; Flash Lite 2.0
Parameters
- An object with
listener:Object
372
ActionScript classes
Number
Number
Boolean
method),
method),
isPropertyEnumerable
method),
method),
unwatch (Object.unwatch
watch (Object.watch method)
and
onKeyDown
method or their
onKeyDown
Description
Registers an object to receive
onKeyDown and onKeyUp notification.
Returns the ASCII code of the last key
pressed or released.
Returns the key code value of the last
key pressed.
Returns true if the key specified in code
is pressed; false otherwise.
Removes an object previously registered
with Key.addListener().
hasOwnProperty
isPrototypeOf (Object.isPrototypeOf
method),
toString
method),
notification. When a key is pressed or
onKeyUp
method invoked. Multiple objects can
onKeyUp
and
methods.
onKeyUp
valueOf
addListener()

Advertisement

Table of Contents
loading

Table of Contents