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.

Advertisements

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

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: