Button.onDragOut( ) Event Handler

ActionScript for Flash MX: The Definitive Guide, 2nd Edition
By Colin Moock
Chapter 18.  ActionScript Language Reference
Button.onDragOut( ) Event Handler Flash 6; on (dragOut) supported since Flash 2

occurs when the depressed mouse is rolled off a Flash button
theButton.onDragOut()    on (dragOut) {     statements }

Description

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).

Example

cancel_btn.onDragOut = function () {   // Handle event...   trace("dragOut detected"); };

See Also

Button.onDragOver( ), Button.onRollOut( ), MovieClip.onDragOut( ); Chapter 10



    ActionScript for Flash MX. The Definitive Guide
    ActionScript for Flash MX: The Definitive Guide, Second Edition
    ISBN: 059600396X
    EAN: 2147483647
    Year: 2002
    Pages: 780
    Authors: Colin Moock

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net