class flash.ui.Keyboard
Available on all platforms
The Keyboard class is used to build an interface that can be controlled by * a user with a standard keyboard. You can use the methods and properties of * the Keyboard class without using a constructor. The properties of the * Keyboard class are constants representing the keys that are most commonly * used to control games.
Class Fields
Constant associated with the Mac command key(15). This constant is * currently only used for setting menu key equivalents.
Constant associated with the pseudo-key code for the the number pad(21). * Use to set numpad modifier on key equivalents
static var NUMPAD_ADD:UInt
Constant associated with the key code value for the addition key on the * number pad(107).
static var NUMPAD_DECIMAL:UInt
Constant associated with the key code value for the decimal key on the * number pad(110).
static var NUMPAD_DIVIDE:UInt
Constant associated with the key code value for the division key on the * number pad(111).
static var NUMPAD_ENTER:UInt
Constant associated with the key code value for the Enter key on the * number pad(108).
static var NUMPAD_MULTIPLY:UInt
Constant associated with the key code value for the multiplication key on * the number pad(106).
static var NUMPAD_SUBTRACT:UInt
Constant associated with the key code value for the subtraction key on the * number pad(109).
static var hasVirtualKeyboard:Bool
Indicates whether the computer or device provides a virtual keyboard. If
* the current environment provides a virtual keyboard, this value is
* true
.
static var physicalKeyboardType:KeyboardType
Indicates the type of physical keyboard provided by the computer or
* device, if any.
* Use the constants defined in the KeyboardType class to test the values
* reported by this property.
Note: If a computer or device has both an alphanumeric keyboard * and a 12-button keypad, this property only reports the presence of the * alphanumeric keyboard.
static function isAccessible():Bool
Specifies whether the last key pressed is accessible by other SWF files. * By default, security restrictions prevent code from a SWF file in one * domain from accessing a keystroke generated from a SWF file in another * domain. * *
returns | The value |