Button.onDragOut( ) Event Handler | Flash 6; on (dragOut) supported since Flash 2 |
occurs when the depressed mouse is rolled off a Flash button |
The onDragOut( ) event handler executes when the primary mouse button is depressed while the mouse pointer is in theButton's hit area, and then, while the mouse button is still depressed, the pointer is moved out of the hit area. It is similar to onRollOut( ), except that it is generated only if the mouse button is down when the pointer leaves a button's hit area. The onDragOut( ) event is followed by either the onReleaseOutside( ) event (if the user releases the mouse button) or the onDragOver( ) event (if the user moves the pointer back into the button's hit area without releasing the mouse button).
cancel_btn.onDragOut = function () { // Handle event... trace("dragOut detected"); };
Button.onDragOver( ), Button.onRollOut( ), MovieClip.onDragOut( ); Chapter 10