window.runtime property | window.runtime.flash.ui.Mouse |
Inheritance | Mouse Object |
Runtime Versions: | AIR 1.0, |
See also
Property | Defined By | ||
---|---|---|---|
constructor : Object
A reference to the class object or constructor function for a given object instance. | Object | ||
cursor : String [static]
The name of the native cursor. | Mouse | ||
prototype : Object [static]
A reference to the prototype object of a class or function object. | Object | ||
supportsCursor : Boolean [static] [read-only]
Indicates whether the computer or device displays a persistent cursor. | Mouse | ||
supportsNativeCursor : Boolean [static] [read-only]
Indicates whether the current configuration supports native cursors. | Mouse |
Method | Defined By | ||
---|---|---|---|
hasOwnProperty(name:String):Boolean
Indicates whether an object has a specified property defined. | Object | ||
hide():void [static]
Hides the pointer. | Mouse | ||
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 | ||
registerCursor(name:String, cursor:MouseCursorData):void [static]
Registers a native cursor under the given name, with the given data. | Mouse | ||
setPropertyIsEnumerable(name:String, isEnum:Boolean = true):void
Sets the availability of a dynamic property for loop operations. | Object | ||
show():void [static]
Displays the pointer. | Mouse | ||
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 | ||
unregisterCursor(name:String):void [static]
Unregisters the native cursor with the given name. | Mouse | ||
valueOf():Object
Returns the primitive value of the specified object. | Object |
cursor | property |
cursor:String
Runtime Versions: | 1.5 |
The name of the native cursor.
supportsCursor | property |
supportsCursor:Boolean
[read-only] Runtime Versions: | 2 |
Indicates whether the computer or device displays a persistent cursor.
The supportsCursor
property is true
on most desktop computers
and false
on most mobile devices.
Note: Mouse events can be dispatched whether or not this property is true
.
However, mouse events may behave differently depending on the physical characteristics of the pointing device.
See also
supportsNativeCursor | property |
supportsNativeCursor:Boolean
[read-only] Runtime Versions: | 1.5 |
Indicates whether the current configuration supports native cursors.
hide | () | method |
public function hide():void
Runtime Versions: | AIR 1.0, |
Hides the pointer. The pointer is visible by default.
Note: You need to call Mouse.hide()
only once, regardless of
the number of previous calls to Mouse.show()
.
registerCursor | () | method |
public function registerCursor(name:String, cursor:MouseCursorData):void
Runtime Versions: | 1.5 |
Registers a native cursor under the given name, with the given data.
Parameters
name:String | |
cursor:MouseCursorData |
show | () | method |
public function show():void
Runtime Versions: | AIR 1.0, |
Displays the pointer. The pointer is visible by default.
Note: You need to call Mouse.show()
only once, regardless of
the number of previous calls to Mouse.hide()
.
unregisterCursor | () | method |
public function unregisterCursor(name:String):void
Runtime Versions: | 1.5 |
Unregisters the native cursor with the given name.
Parameters
name:String |
Thu Sep 29 2011, 02:34 AM -07:00