808
ActionScript classes
_global.shots++;
}
};
Mouse.addListener(mouseListener);
To view the entire script, see the
animation.fla
file in the ActionScript samples Folder. The
following list shows typical paths to the ActionScript samples Folder:
■
Windows:
boot drive
\Program Files\Macromedia\Flash 8\Samples and
Tutorials\Samples\ActionScript
■
Macintosh:
Macintosh HD
/Applications/Macromedia Flash 8/Samples and Tutorials/
Samples/ActionScript
See also
onMouseDown (Mouse.onMouseDown event listener)
,
onMouseMove
(Mouse.onMouseMove event listener)
,
onMouseUp (Mouse.onMouseUp event
listener)
,
onMouseWheel (Mouse.onMouseWheel event listener)
hide (Mouse.hide method)
public static hide() : Number
Hides the pointer in a SWF file. The pointer is visible by default.
Availability:
ActionScript 1.0; Flash Player 5
Returns
Number
- An integer; either
0
or
1
. If the mouse pointer was hidden before the call to
Mouse.hide(),
then the return value is
0
. If the mouse pointer was visible before the call to
Mouse.hide()
, then the return value is
1
.
Example
The following code hides the standard mouse pointer, and sets the
x
and
y
positions of the
pointer_mc
movie clip instance to the
x
and
y
pointer position. Create a movie clip and set its
Linkage identifier to
pointer_id
. Add the following ActionScript to Frame 1 of the
Timeline:
// 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;
Содержание FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
Страница 1: ...ActionScript 2 0 Language Reference ...
Страница 1352: ...1352 ActionScript classes ...