Flash CS3 Documentation |
|||
| ActionScript 2.0 Language Reference > ActionScript classes > Button > onDragOver (Button.onDragOver handler) | |||
onDragOver = function() {}
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.
Availability: ActionScript 1.0; Flash Player 6
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.
onDragOut (Button.onDragOut handler)
Flash CS3
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/9.0/main/00001449.html