Event summary
Event
Description
Notified when a key is pressed.
onKeyDown
=
function() {}
Notified when a key is released.
onKeyUp
=
function() {}
Method summary
Modifiers
Signature
static
addListener(listener
:Object) : Void
static
getAscii() : Number
static
getCode() : Number
static
isAccessible() :
Boolean
static
isDown(code:Number)
: Boolean
static
isToggled(code:Numbe
r) : Boolean
static
removeListener(liste
ner:Object) :
Boolean
Methods inherited from class Object
addProperty (Object.addProperty
(Object.hasOwnProperty
(Object.isPropertyEnumerable
method),
registerClass (Object.registerClass
(Object.toString
(Object.valueOf
method),
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 a Boolean value indicating, depending on
security restrictions, whether the last key pressed may
be accessed by other SWF files.
Returns true if the key specified in keycode is
pressed; false otherwise.
Returns true if the Caps Lock or Num Lock key is
activated (toggled to an active state); false
otherwise.
Removes an object previously registered with
Key.addListener().
method),
method),
isPropertyEnumerable
method),
method),
unwatch (Object.unwatch
watch (Object.watch method)
hasOwnProperty
isPrototypeOf (Object.isPrototypeOf
method),
toString
method),
valueOf
Key
671
Need help?
Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?
Questions and answers