Change the default cursor in Flex with Actionscript code:

February 11, 2008

Here the Class we got to use is CusrsorManager and some methods in it.

The following example shows the custom cursor on a Flex App.

[Embed(source=”images/cursorME.gif”)]
public static const loaderCursor:Class;
var cursorId:int = CursorManager.setCursor(loaderCursor); 

The code will set the cursor ,to remove it use the line of code.

CursorManager.removeCursor(cursorId);

Thats it the default cursor is changed.