Paquete | mx.managers |
Clase | public class CursorManager |
Herencia | CursorManager Object |
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Flex 3 |
Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
For example, if your application performs processing that requires the user to wait until the processing completes, you can change the cursor so that it reflects the waiting period. In this case, you can change the cursor to an hourglass or other image.
You also might want to change the cursor to provide feedback to the user to indicate the actions that the user can perform. For example, you can use one cursor image to indicate that user input is enabled, and another to indicate that input is disabled. You can use a JPEG, GIF, PNG, or SVG image, a Sprite object, or a SWF file as the cursor image.
All methods and properties of the CursorManager are static, so you do not need to create an instance of it.
In AIR, each mx.core.Window instance uses its own instance of the CursorManager class.
Instead of directly referencing the static methods and properties of the CursorManager class,
use the Window.cursorManager
property to reference the CursorManager instance
for the Window instance.
Más ejemplos
Elementos de API relacionados
Propiedad | Definido por | ||
---|---|---|---|
constructor : Object
Una referencia a la clase de objeto o función constructora para una instancia de objeto determinada. | Object | ||
currentCursorID : int [estática]
ID of the current custom cursor,
or NO_CURSOR if the system cursor is showing. | CursorManager | ||
currentCursorXOffset : Number [estática]
The x offset of the custom cursor, in pixels,
relative to the mouse pointer. | CursorManager | ||
currentCursorYOffset : Number [estática]
The y offset of the custom cursor, in pixels,
relative to the mouse pointer. | CursorManager |
Método | Definido por | ||
---|---|---|---|
getInstance():ICursorManager [estática]
Each mx.core.Window instance in an AIR application has its own CursorManager instance. | CursorManager | ||
Indica si un objeto tiene definida una propiedad especificada. | Object | ||
[estática]
Makes the cursor invisible. | CursorManager | ||
Indica si hay una instancia de la clase Object en la cadena de prototipo del objeto especificado como parámetro. | Object | ||
Indica si existe la propiedad especificada y si es enumerable. | Object | ||
[estática]
Removes all of the cursors from the cursor list
and restores the system cursor. | CursorManager | ||
[estática]
Removes the busy cursor from the cursor list. | CursorManager | ||
[estática]
Removes a cursor from the cursor list. | CursorManager | ||
[estática]
Displays the busy cursor. | CursorManager | ||
[estática]
Creates a new cursor and sets an optional priority for the cursor. | CursorManager | ||
Establece la disponibilidad de una propiedad dinámica para operaciones de bucle. | Object | ||
[estática]
Makes the cursor visible. | CursorManager | ||
Devuelve la representación de cadena de este objeto, con formato según las convenciones específicas de configuración regional. | Object | ||
Devuelve la representación de cadena del objeto especificado. | Object | ||
Devuelve el valor simple del objeto especificado. | Object |
Los estilos son comunes o están asociados a un tema específico. Si el estilo es común, se puede utilizar con cualquier tema. Si un estilo está asociado a un tema específico, solo se puede utilizar si la aplicación usa dicho tema.
Estilo | Descripción | Definido por | ||
---|---|---|---|---|
busyCursor | Tipo: Class Herencia CSS: No incluir Versión del lenguaje: ActionScript 3.0 Versión de producto: Flex 3 Versiones de motor de ejecución: Flash9, AIR 1.1 The skin for the busy cursor. El valor predeterminado es mx.skins.halo.BusyCursor . | CursorManager | ||
busyCursorBackground | Tipo: Class Herencia CSS: No incluir Versión del lenguaje: ActionScript 3.0 Versión de producto: Flex 3 Versiones de motor de ejecución: Flash9, AIR 1.1 The class to use as the skin for the busy cursor background. The default value is the "cursorStretch" symbol from the Assets.swf file. | CursorManager |
Constante | Definido por | ||
---|---|---|---|
NO_CURSOR : int = 0 [estática]
Constant that is the value of currentCursorID property
when there is no cursor managed by the CursorManager and therefore
the system cursor is being displayed. | CursorManager |
currentCursorID | propiedad |
currentCursorID:int
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Flex 3 |
Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
ID of the current custom cursor, or NO_CURSOR if the system cursor is showing.
Implementación
public static function get currentCursorID():int
public static function set currentCursorID(value:int):void
currentCursorXOffset | propiedad |
currentCursorXOffset:Number
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Flex 3 |
Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
The x offset of the custom cursor, in pixels, relative to the mouse pointer.
El valor predeterminado es 0.
Implementación
public static function get currentCursorXOffset():Number
public static function set currentCursorXOffset(value:Number):void
currentCursorYOffset | propiedad |
currentCursorYOffset:Number
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Flex 3 |
Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
The y offset of the custom cursor, in pixels, relative to the mouse pointer.
El valor predeterminado es 0.
Implementación
public static function get currentCursorYOffset():Number
public static function set currentCursorYOffset(value:Number):void
getInstance | () | método |
public static function getInstance():ICursorManager
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Flex 3 |
Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
Each mx.core.Window instance in an AIR application has its own CursorManager instance. This method returns the CursorManager instance for the main Window instance.
Valor devueltoICursorManager — The CursorManager instance for the main Window instance in an AIR application.
|
hideCursor | () | método |
public static function hideCursor():void
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Flex 3 |
Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
Makes the cursor invisible.
Cursor visibility is not reference-counted.
A single call to the hideCursor()
method
always hides the cursor regardless of how many calls
to the showCursor()
method were made.
Calling this method does not affect the system cursor.
Use the Mouse.show()
and
Mouse.hide()
methods to directly
control the system cursor.
removeAllCursors | () | método |
public static function removeAllCursors():void
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Flex 3 |
Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
Removes all of the cursors from the cursor list and restores the system cursor.
removeBusyCursor | () | método |
public static function removeBusyCursor():void
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Flex 3 |
Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
Removes the busy cursor from the cursor list.
If other busy cursor requests are still active in the cursor list,
which means you called the setBusyCursor()
method more than once,
a busy cursor does not disappear until you remove
all busy cursors from the list.
removeCursor | () | método |
public static function removeCursor(cursorID:int):void
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Flex 3 |
Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
Removes a cursor from the cursor list. If the cursor being removed is the currently displayed cursor, the CursorManager displays the next cursor in the list, if one exists. If the list becomes empty, the CursorManager displays the default system cursor.
Parámetros
cursorID:int — ID of cursor to remove.
|
setBusyCursor | () | método |
public static function setBusyCursor():void
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Flex 3 |
Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
Displays the busy cursor.
The busy cursor has a priority of CursorManagerPriority.LOW.
Therefore, if the cursor list contains a cursor
with a higher priority, the busy cursor is not displayed
until you remove the higher priority cursor.
To create a busy cursor at a higher priority level,
use the setCursor()
method.
setCursor | () | método |
public static function setCursor(cursorClass:Class, priority:int = 2, xOffset:Number = 0, yOffset:Number = 0):int
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Flex 3 |
Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
Creates a new cursor and sets an optional priority for the cursor. Adds the new cursor to the cursor list.
Parámetros
cursorClass:Class — Class of the cursor to display.
| |
priority:int (default = 2 ) — Integer that specifies
the priority level of the cursor.
Possible values are CursorManagerPriority.HIGH ,
CursorManagerPriority.MEDIUM , and CursorManagerPriority.LOW .
| |
xOffset:Number (default = 0 ) — Number that specifies the x offset
of the cursor, in pixels, relative to the mouse pointer.
| |
yOffset:Number (default = 0 ) — Number that specifies the y offset
of the cursor, in pixels, relative to the mouse pointer.
|
int — The ID of the cursor.
|
Elementos de API relacionados
showCursor | () | método |
public static function showCursor():void
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Flex 3 |
Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
Makes the cursor visible.
Cursor visibility is not reference-counted.
A single call to the showCursor()
method
always shows the cursor regardless of how many calls
to the hideCursor()
method were made.
Calling this method does not affect the system cursor.
Use the Mouse.show()
and
Mouse.hide()
methods to directly
control the system cursor.
NO_CURSOR | Constante |
public static const NO_CURSOR:int = 0
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Flex 3 |
Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
Constant that is the value of currentCursorID
property
when there is no cursor managed by the CursorManager and therefore
the system cursor is being displayed.
Tue Jun 12 2018, 02:12 PM Z