Screen.mouseDown
Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX Professional 2004.
Usage
on(mouseDown) {
// Your code here.
}
listenerObject = new Object();
listenerObject.mouseDown = function(eventObj){
// Insert your code here.
}
screenObj.addEventListener("mouseDown", listenerObject)
Description
Event; broadcast when the mouse button is pressed over an object (for example, a shape or a
movie clip) directly owned by the screen.
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. For more information, see
"EventDispatcher class" on page
Example
The following code displays the name of the screen that captured the mouse event in the
Output panel.
on(mouseDown) {
trace("Mouse down event on: " + eventObj.target._name);
}
1084
Screen class (Flash Professional only)
499.
) to the
eventObj