User Guide
142 Chapter 2: ActionScript Language Reference
Button.onDragOut
Availability
Flash Player 6.
Usage
my_btn.onDragOut = function() : Void {
// your statements here
}
Parameters
None.
Returns
Nothing.
Description
Event handler; invoked when the mouse button is clicked over the button and the pointer then
dragged outside of the button.
You must define a function that executes when the event handler is invoked.
Example
The following example demonstrates how you can execute statements when the pointer is dragged
off a button. Create a button called my_btn on the Stage and enter the following ActionScript in
a frame on the Timeline:
my_btn.onDragOut = function() {
trace("onDragOut: "+this._name);
};
my_btn.onDragOver = function() {
trace("onDragOver: "+this._name);
};