Mouse.show() - MACROMEDIA FLASH MX 2004-ACTIONSCRIPT LANGUAGE Reference

Actionscript language reference
Table of Contents

Advertisement

Mouse.show()

Availability
Flash Player 5.
Usage
Mouse.show() : Number
Parameters
None.
Returns
An integer; either
the return value is
return value is
.
1
Description
Method; displays the mouse pointer in a SWF file. The pointer is visible by default.
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
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();
};
See also
Mouse.hide(), MovieClip._xmouse,
488
Chapter 2: ActionScript Language Reference
or
. If the mouse pointer was hidden before the call to
0
1
. If the mouse pointer was visible before the call to
0
MovieClip._ymouse
Mouse.show(),
, then the
Mouse.show()
, and add
cursor_help_id
then

Advertisement

Table of Contents
loading
Need help?

Need help?

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

This manual is also suitable for:

Flash mx

Table of Contents