Cursor Manager syntax

The following sections describe the syntax of the classes that make up the Cursor Manager.

Class mx.managers.CursorManager syntax

The following table describes the syntax of the mx.managers.CursorManager class:

Property/Method Type Use Description
currentCursorID

Number

Property

Read-only property that returns the ID of the currently displayed cursor.

removeBusyCursor()

 

Method

Removes the busy cursor from the cursor list. If other busy cursor requests are still active in the cursor list, which means that you called the setBusyCursor() method more than once, the busy cursor does not disappear until you remove all busy cursors from the list.

removeCursor()

 

Method

Removes the specified cursor from the list of active cursors. If the cursor was the currently displayed cursor, this method displays the next cursor in the list, if one exists. This method returns nothing.

setBusyCursor()

 

Method

Inserts the busy cursor into the cursor list. The busy cursor is given a priority of CursorManager.LOWPRIORITY. If no cursor with a higher priority is defined in the cursor list, the busy cursor is displayed.

setCursor()

 

Method

Assigns a cursor in the list of active cursors. The cursor might not display immediately, depending on the number of other active cursors and the priority level of the cursors.

This method returns the ID of the cursor.

Syntax for controls that directly support the Cursor Manager

The Cursor Manager adds the following optional property to the Loader control, and to the <mx:WebService>, <mx:HttpService>, and <mx:RemoteObject> tags:

Property Type Use Description
showBusyCursor

Boolean

Property

If set to true, specifies to display the busy cursor when the first progress event of the control is triggered, and hide the busy cursor when the complete event is triggered.

The default value for the Loader control is false.

The default value for the <mx:WebService>, <mx:HttpService>, and <mx:RemoteObject> tags is true.


Version 1.5

 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/flex/15/flex_docs_en/00000613.htm