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
statement to the Output panel. Create a button called
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
handler that sends a
onDragOver
on the Stage and enter the
my_btn
trace()
Button.onDragOver
143
Need help?
Do you have a question about the FLASH MX 2004-ACTIONSCRIPT LANGUAGE and is the answer not in the manual?
Questions and answers