User Guide

Key 671
Event summary
Method summary
Methods inherited from class Object
Event Description
onKeyDown =
function() {}
Notified when a key is pressed.
onKeyUp =
function() {}
Notified when a key is released.
Modifiers Signature Description
static addListener(listener
:Object) : Void
Registers an object to receive onKeyDown and
onKeyUp notification.
static getAscii() : Number Returns the ASCII code of the last key pressed or
released.
static getCode() : Number Returns the key code value of the last key pressed.
static isAccessible() :
Boolean
Returns a Boolean value indicating, depending on
security restrictions, whether the last key pressed may
be accessed by other SWF files.
static isDown(code:Number)
: Boolean
Returns true if the key specified in keycode is
pressed; false otherwise.
static isToggled(code:Numbe
r) : Boolean
Returns true if the Caps Lock or Num Lock key is
activated (toggled to an active state); false
otherwise.
static removeListener(liste
ner:Object) :
Boolean
Removes an object previously registered with
Key.addListener().
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)