window.runtime property | window.runtime.flash.ui.MouseCursorData |
Inheritance | MouseCursorData Object |
Runtime Versions: | 2.6 |
To display the cursor, use the Mouse.registerCursor()
function. To return
control of the cursor image to the operating system, call Mouse.unregisterCursor()
.
Call Mouse.supportsNativeCursor
to test whether native cursors are supported on the
current computer.
The maximum cursor size is 32x32 pixels.Transparency is supported on most operating systems.
A native mouse cursor is implemented directly through the operating system cursor mechanism
and is a more efficient means for displaying a custom cursor image than using a display object.
You can animate the cursor by supplying more than one image in the data
property
and setting the frame rate.
The cursor is only displayed within the bounds of the stage. Outside the stage, control of the cursor image returns to the operating system
See also
Property | Defined By | ||
---|---|---|---|
constructor : Object
A reference to the class object or constructor function for a given object instance. | Object | ||
data : Vector.<BitmapData>
A Vector of BitmapData objects containing the cursor image or images. | MouseCursorData | ||
frameRate : Number
The frame rate for animating the cursor. | MouseCursorData | ||
hotSpot : Point
The hot spot of the cursor in pixels. | MouseCursorData | ||
prototype : Object [static]
A reference to the prototype object of a class or function object. | Object |
Method | Defined By | ||
---|---|---|---|
Creates a MouseCursorData object. | MouseCursorData | ||
hasOwnProperty(name:String):Boolean
Indicates whether an object has a specified property defined. | Object | ||
isPrototypeOf(theClass:Object):Boolean
Indicates whether an instance of the Object class is in the prototype chain of the object specified
as the parameter. | Object | ||
propertyIsEnumerable(name:String):Boolean
Indicates whether the specified property exists and is enumerable. | Object | ||
setPropertyIsEnumerable(name:String, isEnum:Boolean = true):void
Sets the availability of a dynamic property for loop operations. | Object | ||
toLocaleString():String
Returns the string representation of this object, formatted according to locale-specific conventions. | Object | ||
toString():String
Returns the string representation of the specified object. | Object | ||
valueOf():Object
Returns the primitive value of the specified object. | Object |
data | property |
data:Vector.<BitmapData>
Runtime Versions: | 2.6 |
A Vector of BitmapData objects containing the cursor image or images.
Supply more than one image and set the framerate
property to
animate the cursor.
The maximum cursor size is 32x32 pixels.
frameRate | property |
frameRate:Number
Runtime Versions: | 2.6 |
The frame rate for animating the cursor.
Suppy more than one image in the data
property and set the
frame rate to a value greater than 0 to animate the cursor. The cursor frame rate
may differ from the current SWF frame rate.
hotSpot | property |
hotSpot:Point
Runtime Versions: | 2.6 |
The hot spot of the cursor in pixels.
The hotspot is the point on the cursor under which mouse clicks are registered. By default, the hot spot is the upper-left corner (0,0).
MouseCursorData | () | Constructor |
public function MouseCursorData()
Runtime Versions: | 2.6 |
Creates a MouseCursorData object.
To display the cursor, call the Mouse.registerCursor()
function.
See also
Thu Sep 29 2011, 02:34 AM -07:00