MACROMEDIA FLASH MX 2004-ACTIONSCRIPT LANGUAGE Reference page 482

Actionscript language reference
Table of Contents

Advertisement

The following example hides the standard mouse pointer, and sets the x and y positions of the
movie clip instance to the x and y pointer position. Create a movie clip and set its
pointer_mc
Linkage identifier to
// to use this script you need a symbol
// in your library with a Linkage Identifier of "pointer_id".
this.attachMovie("pointer_id", "pointer_mc", this.getNextHighestDepth());
Mouse.hide();
var mouseListener:Object = new Object();
mouseListener.onMouseMove = function() {
pointer_mc._x = _xmouse;
pointer_mc._y = _ymouse;
updateAfterEvent();
};
Mouse.addListener(mouseListener);
See also
Mouse.addListener()
482
Chapter 2: ActionScript Language Reference
. Add the following ActionScript to Frame 1 of the Timeline:
pointer_id

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