UIEventDispatcher.keyDown
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
listenerObject = new Object();
listenerObject.keyDown = function(eventObject){
// insert your code here
}
componentInstance.addEventListener("keyDown", listenerObject)
Description
Event; broadcast to all registered listeners when a key is pressed and the Flash application has
focus.
When the event is triggered, it automatically passes an event object (
handler. Each event object has properties that contain information about the event. You can use
these properties to write code that handles the event.
UIEventDispatcher.keyUp
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
listenerObject = new Object();
listenerObject.keyUp = function(eventObject){
// insert your code here
}
componentInstance.addEventListener("keyUp", listenerObject)
Description
Event; broadcast to all registered listeners when a key that was pressed is released and the Flash
application has focus.
When the event is triggered, it automatically passes an event object (
handler. Each event object has properties that contain information about the event. You can use
these properties to write code that handles the event.
) to the
eventObject
) to the
eventObject
UIEventDispatcher class
803
Need help?
Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?
Questions and answers