User Guide
Button.onDragOver 143
Button.onDragOver
Availability
Flash Player 6.
Usage
my_btn.onDragOver = function() : Void {
// your statements here
}
Parameters
None.
Returns
Nothing.
Description
Event handler; invoked when the user presses and drags the mouse button outside and then over
the button.
You must define a function that executes when the event handler is invoked.
Example
The following example defines a function for the onDragOver handler that sends a trace()
statement to the Output panel. Create a button called
my_btn on the Stage and enter the
following ActionScript on the Timeline:
my_btn.onDragOut = function() {
trace("onDragOut: "+this._name);
};
my_btn.onDragOver = function() {
trace("onDragOver: "+this._name);
};
When you test the SWF file, drag the pointer off the button instance. Then, while holding the
mouse button, drag onto the button instance again. Notice that the Output panel tracks your
movements.
See also
Button.onDragOut