Change the default cursor in Flex with Actionscript code:

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.

2 Responses to “Change the default cursor in Flex with Actionscript code:”

  1. raghavendra Says:

    Hi,

    I wanted to change the default progressbar in flex can any one help me

    Regards
    Raghavendra

  2. kumargandhi Says:

    U mean the DownLoadProgressBar,then we need to write a Action Script Class which extends the DownloadProgressBar and write the code you needed there , like putting some images,or useing Graphics class and its methods we can draw our own Loading thing.
    And you include that in the code using the styles and its classreference in the Style.
    I will make a post soon, or you can check it out at my WebSite http://www.99thoughts.com

    regards,
    kumar.

Leave a Reply