MACROMEDIA FLEX-FLEX ACTIONSCRIPT LANGUAGE Reference page 370

Actionscript language reference
Table of Contents

Advertisement

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 a Linkage identifier of
my_mc
ActionScript :
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,
370
Chapter 6: ActionScript Core Classes
cursor_help_id
MovieClip._ymouse
, and add the following

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flex

Table of Contents