EasyManua.ls Logo

MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE - Usehandcursor (Movieclip.usehandcursor Property); Visible (Movieclip._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...
MovieClip 937
The MovieClipLoader class used in these examples requires Flash Player 7 or later. The
MovieClip.getNextHighestDepth() method used in these examples requires Flash Player 7
or later. If your SWF file includes a version 2 component, use the version 2 components
DepthManager class instead of the
MovieClip.getNextHighestDepth() method.
useHandCursor (MovieClip.useHandCursor property)
public useHandCursor : Boolean
A Boolean value that indicates whether the pointing hand (hand cursor) appears when the
mouse rolls over a movie clip. The default value of the
useHandCursor property is true. If
useHandCursor is set to true, the pointing hand used for buttons appears when the mouse
rolls over a button movie clip. If
useHandCursor is false, the arrow pointer is used instead.
You can change the
useHandCursor property at any time; the modified movie clip
immediately uses the new cursor behavior. The
useHandCursor property can be read out of a
prototype object.
Availability: ActionScript 1.0; Flash Player 6
Example
The following example sets the
useHandCursor property for two movie clips called myMC1_mc
and
myMC2_mc. The property is set to true for one instance, and false for the other instance.
Notice how both instances can still receive events.
myMC1_mc.onRelease = traceMC;
myMC2_mc.onRelease = traceMC;
myMC2_mc.useHandCursor = false;
function traceMC() {
trace("you clicked: "+this._name);
};
_visible (MovieClip._visible property)
public _visible : Boolean
A Boolean value that indicates whether the movie clip is visible. Movie clips that are not
visible (
_visible property set to false) are disabled. For example, a button in a movie clip
with
_visible set to false cannot be clicked.
Availability: ActionScript 1.0; Flash Player 4

Table of Contents

Related product manuals