Show (Mouse.show Method) - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

show (Mouse.show method)

public static show() : Number
Displays the mouse pointer in a SWF file. The pointer is visible by default.
Availability: ActionScript 1.0; Flash Player 5
Returns
- An integer; either
Number
then the return value is
Mouse.show(),
, then the return value is
Mouse.show()
Example
The following example attaches a custom cursor from the library when it rolls over a movie
clip called
. Give a movie clip in the Library a Linkage identifier of
my_mc
and add the following ActionScript to Frame 1 of the Timeline:
my_mc.onRollOver = function() {
Mouse.hide();
this.attachMovie("cursor_help_id", "cursor_mc",
this.getNextHighestDepth(), {_x:this._xmouse, _y:this._ymouse});
};
my_mc.onMouseMove = function() {
this.cursor_mc._x = this._xmouse;
this.cursor_mc._y = this._ymouse;
};
my_mc.onRollOut = function() {
Mouse.show();
this.cursor_mc.removeMovieClip();
};
The
MovieClip.getNextHighestDepth()
7 or later. If your SWF file includes a version 2 component, use the version 2 components
DepthManager class instead of the
See also
hide (Mouse.hide method)
(MovieClip._ymouse property)
816
ActionScript classes
or
. If the mouse pointer was hidden before the call to
0
1
. If the mouse pointer was visible before the call to
0
.
1
method used in this example requires Flash Player
MovieClip.getNextHighestDepth()
,
_xmouse (MovieClip._xmouse property)
,
cursor_help_id
method.
,
_ymouse

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents