Button.useHandCursor
Availability
Flash Player 6.
Usage
my_btn.useHandCursor:Boolean
Description
Property; a Boolean value that, when set to
(hand cursor) displays when the mouse rolls over a button. If this property is set to
arrow pointer is used instead.
You can change the
on the new cursor behavior. The
Example
Create two buttons on the Stage with the instance names
the following ActionScript in Frame 1 of the Timeline:
myBtn1_btn.useHandCursor = false;
myBtn1_btn.onRelease = buttonClick;
myBtn2_btn.onRelease = buttonClick;
function buttonClick() {
trace(this._name);
}
When the mouse is over and clicks
pointing hand when the button is over and clicks
164
Chapter 2: ActionScript Language Reference
property at any time; the modified button immediately takes
useHandCursor
useHandCursor
myBtn1_btn
(the default), indicates whether a pointing hand
true
property can be read out of a prototype object.
myBtn1_btn
, there is no pointing hand. However, you see the
.
myBtn2_btn
, the
false
and
. Enter
myBtn2_btn
Need help?
Do you have a question about the FLASH MX 2004-ACTIONSCRIPT LANGUAGE and is the answer not in the manual?
Questions and answers