AS3 Tip: Mouse.cursor - A New Property in Flash Player 10

In Flash Player 10 and Flash CS4,
there is a new property, Mouse.cursor, which provides five custom cursors.
Below is an applet that illustrates all of them. It is a useful property. Suppose
that you have a MovieClip which responds to mouse clicks. You would like the mouse
cursor to change to a clicking hand when the user hovers over the MovieClip.
The new property makes it easy to accomplish.

The simple code behind the applet illustrates how to use the Mouse.cursor property.

/*
In Flash Player 10 there are a few custom cursors available
and the Mouse class has a new property: Mouse.cursor.
There are only five possible values for this property:
"hand", "ibeam", "auto", "arrow", and "button".
The default value for the property is "auto".
In this How-To, we illustrate the behavior of each
of the available cursors.
*/

/*
We created five MovieClips on the Stage with instance names:
handClip, ibeamClip, autoClip, arrowClip, and buttonClip.
When the user mouses over each clip, the setting for Mouse.cursor
changes accordingly.
*/

/*
Each clip contains a button in it. The buttons do not
do anything. We inserted them in order to demonstrate the behavior
of the mouse cursor for each setting of the property Mouse.cursor.
*/