EasyManua.ls Logo

MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE - Usehandcursor (Button.usehandcursor Property); Visible (Button._Visible Property)

MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
1378 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Button 375
var my_str:String = String(url_array.pop());
output_txt.text = unescape(my_str);
};
When you click each button, the file name of the SWF containing the buttons displays in the
Output panel.
useHandCursor (Button.useHandCursor property)
public useHandCursor : Boolean
A Boolean value that, when set to true (the default), indicates whether a pointing hand (hand
cursor) displays when the mouse rolls over a button. If this property is set to
false, the arrow
pointer is used instead.
You can change the
useHandCursor property at any time; the modified button immediately
takes on the new cursor behavior. The
useHandCursor property can be read out of a
prototype object.
Availability: ActionScript 1.0; Flash Player 6
Example
Create two buttons on the Stage with the instance names
myBtn1_btn and myBtn2_btn.
Enter 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 myBtn1_btn, there is no pointing hand. However, you see
the pointing hand when the button is over and clicks
myBtn2_btn.
_visible (Button._visible property)
public _visible : Boolean
A Boolean value that indicates whether the button specified by my_btn is visible. Buttons that
are not visible (
_visible property set to false) are disabled.
Availability: ActionScript 1.0; Flash Player 6

Table of Contents

Related product manuals