Mouse.hide()

Availability

Flash Player 5.

Usage

Mouse.hide()

Parameters

None.

Returns

A Boolean value: true if the pointer is visible, and false if the pointer is invisible.

Description

Method; hides the pointer in a SWF file. The pointer is visible by default.

Example

The following code, attached to a movie clip on the main Timeline, hides the standard pointer, and sets the x and y positions of the customPointer_mc movie clip instance to the x and y mouse positions in the main Timeline.

onClipEvent(enterFrame){
  Mouse.hide();
  customPointer_mc._x = _root._xmouse;
  customPointer_mc._y = _root._ymouse;
}

See also

Mouse.show(), MovieClip._xmouse, MovieClip._ymouse