Button.onDragOver( ) Event Handler | Flash 6; on (dragOver) supported since Flash 2 |
occurs when the depressed mouse rolls off and back onto a Flash button |
The onDragOver( ) event handler is a seldom-seen woodland creature. It is conjured up when the following sequence is performed:
The mouse pointer moves into the hit area of a button (onRollOver( ) event occurs).
The primary mouse button is pressed and held (onPress( ) event occurs).
The mouse pointer moves out of the button's hit area (onDragOut( ) event occurs).
The mouse pointer moves back into the button's hit area (onDragOver( ) event occurs).
Thus, the dragOver event indicates that the user has moved the mouse pointer out of and back into the hit area, all the while holding down the mouse button. Note that dragOver, instead of the rollOver event, is generated if the mouse button is still down when the pointer reenters the button's hit area.
cancel_btn.onDragOver = function () { // Handle event... trace("dragOver detected"); };
Button.onDragOut( ), Button.onRollOver( ), MovieClip.onDragOver( ); Chapter 10