Packageorg.aswing.event
Classpublic class FocusKeyEvent
InheritanceFocusKeyEvent Inheritance flash.events.KeyboardEvent



Public Methods
 MethodDefined by
  
FocusKeyEvent(type:String, charCode:uint = 0.0, keyCode:uint = 0.0, keyLocation:uint = 0.0, ctrlKey:Boolean = false, altKey:Boolean = false, shiftKey:Boolean = false)
FocusKeyEvent
  
clone():Event
FocusKeyEvent
Public Constants
 ConstantDefined by
  FOCUS_KEY_DOWN : String = "focusKeyDown"
[static] The FocusKeyEvent.FOCUS_KEY_DOWN constant defines the value of the type property of the event object for a focusKeyDown event.
FocusKeyEvent
  FOCUS_KEY_UP : String = "focusKeyUp"
[static] The FocusKeyEvent.FOCUS_KEY_UP constant defines the value of the type property of the event object for a focusKeyUp event.
FocusKeyEvent
Constructor detail
FocusKeyEvent()constructor
public function FocusKeyEvent(type:String, charCode:uint = 0.0, keyCode:uint = 0.0, keyLocation:uint = 0.0, ctrlKey:Boolean = false, altKey:Boolean = false, shiftKey:Boolean = false)Parameters
type:String
 
charCode:uint (default = 0.0)
 
keyCode:uint (default = 0.0)
 
keyLocation:uint (default = 0.0)
 
ctrlKey:Boolean (default = false)
 
altKey:Boolean (default = false)
 
shiftKey:Boolean (default = false)
Method detail
clone()method
public override function clone():Event

Returns
Event
Constant detail
FOCUS_KEY_DOWNconstant
public static const FOCUS_KEY_DOWN:String = "focusKeyDown"

The FocusKeyEvent.FOCUS_KEY_DOWN constant defines the value of the type property of the event object for a focusKeyDown event.

The properties of the event object have the following values:

PropertyValue
bubblesfalse
cancelablefalse
charCodeThe character code value of the key pressed or released.
keyCodeThe key code value of the key pressed or released.
keyLocationThe location of the key on the keyboard.
ctrlKeytrue if the Control key is active; false if it is inactive.
altKeyfalse, reserved
shiftKeytrue if the Shift key is active; false if it is inactive.
currentTargetThe Object that defines the event listener that handles the event. For example, if you use comp.addEventListener() to register an event listener, comp is the value of the currentTarget.
targetThe Object that dispatched the event; it is not always the Object listening for the event. Use the currentTarget property to always access the Object listening for the event.
FOCUS_KEY_UPconstant 
public static const FOCUS_KEY_UP:String = "focusKeyUp"

The FocusKeyEvent.FOCUS_KEY_UP constant defines the value of the type property of the event object for a focusKeyUp event.

The properties of the event object have the following values:

PropertyValue
bubblesfalse
cancelablefalse
charCodeThe character code value of the key pressed or released.
keyCodeThe key code value of the key pressed or released.
keyLocationThe location of the key on the keyboard.
ctrlKeytrue if the Control key is active; false if it is inactive.
altKeyfalse, reserved
shiftKeytrue if the Shift key is active; false if it is inactive.
currentTargetThe Object that defines the event listener that handles the event. For example, if you use comp.addEventListener() to register an event listener, comp is the value of the currentTarget.
targetThe Object that dispatched the event; it is not always the Object listening for the event. Use the currentTarget property to always access the Object listening for the event.