ActionScript 3.0 Language and Components Reference | All Packages | All Classes | Language Elements | Index | Appendixes | Conventions | Frames No Frames |
KeyLocation

Package | flash.ui
Class | public final class KeyLocation
Inheritance | KeyLocation Object

Language Version : | ActionScript 3.0

Player Version : | Flash Player 9

The KeyLocation class contains constants that indicate the location of a key pressed on the keyboard. The KeyLocation constants are used in the `KeyboardEvent.keyLocation` property.

See also

flash.events.KeyboardEvent.keyLocation

Public Properties
Hide Inherited Public Properties
Show Inherited Public Properties

| Property | Defined By
--- | --- | ---
|  | constructor : Object A reference to the class object or constructor function for a given object instance. | Object
|  | prototype : Object [static] A reference to the prototype object of a class or function object. | Object

Public Methods
Hide Inherited Public Methods
Show Inherited Public Methods

| Method | Defined By
--- | --- | ---
|  | hasOwnProperty(name:String):Boolean Indicates whether an object has a specified property defined. | Object
|  | isPrototypeOf(theClass:Object):Boolean Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter. | Object
|  | propertyIsEnumerable(name:String):Boolean Indicates whether the specified property exists and is enumerable. | Object
|  | setPropertyIsEnumerable(name:String, isEnum:Boolean = true):void Sets the availability of a dynamic property for loop operations. | Object
|  | toString():String Returns the string representation of the specified object. | Object
|  | valueOf():Object Returns the primitive value of the specified object. | Object

Public Constants

| Constant | Defined By
--- | --- | ---
|  | LEFT : uint = 1 [static] Indicates the key activated is in the left key location (there is more than one possible location for this key). | KeyLocation
|  | NUM_PAD : uint = 3 [static] Indicates the key activation originated on the numeric keypad or with a virtual key corresponding to the numeric keypad. | KeyLocation
|  | RIGHT : uint = 2 [static] Indicates the key activated is in the right key location (there is more than one possible location for this key). | KeyLocation
|  | STANDARD : uint = 0 [static] Indicates the key activation is not distinguished as the left or right version of the key, and did not originate on the numeric keypad (or did not originate with a virtual key corresponding to the numeric keypad). | KeyLocation

Constant Detail

LEFT | Constant

`public static const LEFT:uint = 1`

Language Version : | ActionScript 3.0

Player Version : | Flash Player 9

Indicates the key activated is in the left key location (there is more than one possible location for this key). Example: The left Shift key on a PC 101 Key US keyboard.

NUM_PAD | Constant |

`public static const NUM_PAD:uint = 3`

Language Version : | ActionScript 3.0

Player Version : | Flash Player 9

Indicates the key activation originated on the numeric keypad or with a virtual key corresponding to the numeric keypad. Example: The 1 key on a PC 101 Key US keyboard located on the numeric pad.

RIGHT | Constant |

`public static const RIGHT:uint = 2`

Language Version : | ActionScript 3.0

Player Version : | Flash Player 9

Indicates the key activated is in the right key location (there is more than one possible location for this key). Example: The right Shift key on a PC 101 Key US keyboard.

STANDARD | Constant |

`public static const STANDARD:uint = 0`

Language Version : | ActionScript 3.0

Player Version : | Flash Player 9

Indicates the key activation is not distinguished as the left or right version of the key, and did not originate on the numeric keypad (or did not originate with a virtual key corresponding to the numeric keypad). Example: The Q key on a PC 101 Key US keyboard.

Submit Feedback on LiveDocs
© 2004-2008 Adobe Systems Incorporated. All rights reserved.
Tue May 20 2008, 04:02 AM -07:00