Button.useHandCursor Property

ActionScript for Flash MX: The Definitive Guide, 2nd Edition
By Colin Moock
Chapter 18.  ActionScript Language Reference
Button.useHandCursor Property Flash 6

Boolean; dictates whether a hand icon is displayed when the mouse pointer is over the button read/write
theButton.useHandCursor

Description

When set to false, the Boolean useHandCursor property disables the display of the hand pointer icon normally shown when the mouse pointer is over theButton's hit area. When the hand cursor is disabled, the regular arrow cursor is used (this is more typical behavior for operating system buttons). Movies that use large transparent buttons, for interfaces such as picture slide shows, often disable the hand cursor.

Note that other than the hand icon, no other built-in mouse pointer icons are available. For instructions on creating a custom mouse pointer icon, see Mouse.hide( ).

Example

The following code disables the hand cursor for ok_btn:

ok_btn.useHandCursor = false;

The following code disables the hand cursor for all buttons in a movie (unless a button overrides the global setting with its own useHandCursor property):

Button.prototype.useHandCursor = false;

See Also

Mouse.hide( ); "The Almighty Prototype Chain," in Chapter 12



    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