Show Custom Busy Cursor on RemoteObject calls

Hi,
I am trying to display a custom image as busy cursor while making remote object calls in flex 4 with cairngorm.
i tried in two different ways and neither worked -
First approach - declaring style for CursorManager in css style sheet:-
CursorManager {
busy-cursor: Embed(source="/com/officemax/amps/assets/images/ball-3.jpg");
This did not work as it could not resolve a namespace and i could not find CursorManager either with mx or s namespace.
Second approach - set cursormanager style on initiliaze of application file:-
[Embed(source="/com/officemax/amps/assets/images/ball-3.jpg")]
public var busyImg:Class;
and on init method-
styleManager.getStyleDeclaration("mx.managers.CursorManager").setStyle("busy-cursor", busyImg);
This did not work either. this returned CSSDeclaration class for the CursorManager but I could not see the cursor reflect.
I do not want to set and remove cursor upon each call, i want to apply it globally.
Any ideas are greatly appreciated.
Thank You.

@lakshdn,
The two approached you used should work. I suspect surely you made mistakes..Well let me explain..
In the CSS style declaration below make sure you have assigned the correct relative. If you are getting any error saying that it could not resolve the path or namespace then it means that you have not assigned the image path correctly. Make sure it is given correctly.
CursorManager {
busy-cursor: Embed(source="/com/officemax/amps/assets/images/ball-3.jpg");
Well coming to AS style of setting cursor manager . You have used systemManager with lower case for s and in the setStyle method you need to use the busyCursor instead of busy-cursor(similar to css).
styleManager.getStyleDeclaration("mx.managers.CursorManager").setStyle ("busy-cursor", busyImg); - wrong way of assigning.
StyleManager.getStyleDeclaration("mx.managers.CursorManager").setStyle ("busyCursor", busyImg); - correct way of assigning.
Observe the changes I made in bold letters.
Always remember when you are setting styles in AS using setStyle method you need to give the properties in the lower camel case but not as you give in the css. In css we can use any king of style (either word seperated by hyphen or lower camel case syntax)
Hope this is clear ..make these changes and check..
Thanks,
Bhasker

Similar Messages

  • Custom Busy Cursor

    Has anyone implemented a custom busy cursor or know how to do
    this?
    Thanks
    Chris
    [email protected]

    Hi,
    I need animated busy Cursor.  If i implement the above code then i got only image in place of Mouse Pointer.
    i.e If you take the above example, i am not getting animation of the HourGlass.
    Assume that i have animated PNG file.  How can i play the animation when i set that image as "busyCursor" as part of CursorManager.
    Thanks in advance.
    Regards,
    Santhosh

  • Disable object, during busy cursor showing

    Hi guys,
    I've a complex text field which I can embed types of font within it. When I try to choose a specific font through the Dropdownlist, I'll show the busy cursor till font embeds inside the text field completely.
    I want to disable my text field based on showing busy cursor... I mean when the busy cursor is showing disable the text filed and after disappearing that, just enabled text field again.
    How can I do that?
    Is there any specific listener for that or what?
    Thanks in advance

    Hello,
    <p>See the Set_Application_Property() built-in. (CURSOR_STYLE)</p>
    Francois

  • Trying to put a busy Cursor but ...confused why its not showing up

    Hi
    I have a Application and within it there are few HBox, List, VBOX , Canvas ......blah.. But one Vbox(vbox1) has a List(list1)
    From List on itemClick I have a requirement of opening up a tree node by doing a lazy loading of the tree
    And during this processing happens I wanted to show a busy cursor to let the user know that on item click the application is trying to load a tree and then open a particular node
    Did the folllowing
    CursorManager.setBusyCursor();
    and
    CursorManager.removeBusyCursor();
    Also
    var cusrorId:Number = CursorManager.setCursor(StyleManager.getStyleDeclaration("CursorManager").getStyle("busyC ursor"),CursorManagerPriority.HIGH)
    and
    CursorManager.removeCursor(cursorId)
    Also
    list1.cursorManager.setBusyCursor();
    vbox1.cursorManager.setBusyCursor();
    and
    list1.cursorManager.removeBusyCursor();
    vbox1.cursorManager.removeBusyCursor();
    But after all this I didn't see any Busy Cursor
    Busy Cursor is shown for few minutes if I put a Timer in between i.e after the ItemClick and before I trigger the processing of lazy loading of the tree
    Guys any guesses
    How can I make it work ? M I doing something wrong ? Please help
    Regards
    Biswamit

    Is it a 2nd gen or a 3rd gen? Only the 3rd gen requires for power to be plugged in, however all cables need to be disconnected initially regardless of model.
    Apple TV (2nd and 3rd generation): Restoring your Apple TV
    Make sure you are connecting directly to computer, not a keyboard port or USB hub. Try a different cable.

  • [Solved] No busy cursor shows

    dwm + arch very good but no busy cursor shows during application launch waiting time. Googling all day no solution.
    Last edited by duyinthee (Yesterday 05:13:10)

    Trilby wrote:I doubt that is what they do.  I suspect the DE also couldn't change the cursor if the heavy app was launched from the command line.  But if it is launched from a .desktop file (which it often would be in a DE) then the DE can listen for an event of when what program's main window is displayed.
    Ah, that makes more sense - and would allow not having to poll the CPU usage (and I guess there aren't many people launching things from a command line in a DE).
    ... been too long since I've used a DE.
    EDIT
    So if you were to patch dwm, you'd need to add data structures for keeping track of processes that are forked from dwm, and associate each appearing window to the corresponding process in order to determine whether to show a "busy" cursor or a normal one.
    May I say that this goes pretty much against the pricincple of dwm of keeping out superfluous features?
    ... but then again, "superfluous" is subjective, and dwm is made for people patching it to fit their needs, and while having a "busy cursor" in dwm may not seem useful for the big part of dwm users, you are free to patch it whatever way you like, and that's the beauty of a hackable WM
    Last edited by ayekat (2015-06-21 14:51:07)

  • Problem with busy cursor

    IHey there,
    i have a popping up window in my Flex app. This window needs a little time to get created. In this time I want to set the Cursor to busy. But instead of the busy cursor Flex displays no cursor, also the arrow cursor disappears.
    I tried the hack with callLater but it doesn't help. Had anyone a similar problem and knows how to fix it?
    By the way: What is the best way to set the busy cursor? Static, with the parentApplication.cursoManager property or in the component with this.cursoManager? All of these ways have the same result on my problem: no cursor!
    click on a item (own component, extended Canvas, buttonMode = true)
    call function by MouseListener
    function {
        this.cursorManager.setBusyCursor();
        this.callLater(doPopUpWork);
    callLater function
    doPopUpWork() {
        // DO WORK AND ADD POPUP
        this.cursorManager.removeBusyCursor;
    I checked the right timing with trace statements [ trace("setBusy") ... ] and the also cursor comes Back when work is done and popup was added. All right and in right time. But the cursor disappears in that time instead of showing the busy cursor.
    Can anybody help me???

    I see there are problems with reading the code, try again:
    click on a item (own component, extended Canvas, buttonMode = true)
    call function by MouseListener
    function {
        this.cursorManager.setBusyCursor();
        this.callLater(doPopUpWork);
    callLater function
    doPopUpWork {
        // DO WORK AND ADD POPUP
        this.cursoManager.removeBusyCursor();

  • 30EA2 No Busy Cursor

    When long running SQL Query (or DDL) is running SQL Developer does not show a busy cursor (Win XP)

    Hi,
    If you run SQL Query, there should be a dancing icon on the tab and also a progress bar bouncing left to right as well.
    By the means SQL Query here is SELECT statement.
    If you are talking about DML (Insert, Update, Delete) and DDL one (truncate, drop, create index, etc), then the answer is no, there isn't. It hasn't been here starting version 2.1.
    It had been discussed on the following thread and one of the developer promised to follow up the issue.
    30EA2->2.1.*: Task Progress indication
    You may want to add something on the thread which hopefully gets enough attention, faster implementation and probably a better functionality.
    For the time being, to monitor the progress, use View - Task Progress, there you can see the busy indicator for DML and DDL statement.
    Regards,
    Buntoro

  • SQLite Busy Cursor

    Hello!
    Is it possible to have the showBusyProperty for synchronous SQLite connections and operations?
    Thank you!

    If you want to show a busy cursor just add
    CursorManager.setBusyCursor();
    Right after you begin working with SQLite, and once you're done remove it.
    CursorManager.removeBusyCursor();

  • Busy Cursor in SchedulingGantt

    Hi.
    I have a SchedulingGantt and I want to show a busy cursor when the user changes a task (or any DataChangeEvent). Any idea how I can do that?
    When the user moves a task it will pop back to where it was, the model has to be refreshed on the server and then the page(or at least the gantt) has to be refreshed to show the new location. This can take a few seconds and during that time it looks to the user like nothing happened.
    I found the AdfAgent.showBusyCursor function which probably would work, but how do I catch the DataChangeEvent on the client before it is sent to the server? My first thought was to use af:clientListener on the dvt:schedulingGantt but that isn't supported.
    Are there any other ways to do this?

    Two things come to mind:
    1. put an <af:statusIndicator> on the page. This will show a spinning gif whenever a ppr is active. A good visual feedback for the user
    2. use a [glass pane |http://www.oracle.com/technology/products/jdev/tips/fnimphius/glasspane/glasspane.html] to disable the whole UI while something is active.
    Timo

  • Busy cursor - two cursors displayed over the TextField

    Hi all,
    first I describe the situation. When busy cursor is activated in Flex application, when the service is loading data from backend, then the clock or whatever you set can be displayed instead of the mouse arrow icon. But when you are over the TextField, then the busy cursor is displayed and over the busy cursor the additional "text input cursor" is displayed.
    1) Is it possible to get rid of that "text cursor" in the case when busy cursor is activated ? That means show only busy cursor like in other cases.
    2) Is it possible to override CursorManager ? As I did not found any events in the interface.
    Or what could be the solution to this ?
    I did not found any solution like this anywhere. I know how to set my own icon to the cursor, how to start and stop busy cursor manually. But how to override adding the text cursor to the scene only for the case when busy cursor is started and the Service is loading the items from backend and you are over some text component?
    thanks
    regards
    Michal.

    No, it's not mobile app.
    I use SDK 4.5.0
    By text components I mean TextInput for example, but it happens at all the places where "text cursor" is displayed.
    You can check the behavior in the following blog article, when you try the first example and press Toggle button to activate busy cursor and hover the text below. This is exactly what I want to avoid. Two cursors displayed. I don't know what is the version used in the article, but the same happens in 4.5.0
    http://www.flex-blog.com/set-busy-cursor-using-the-cursormanager/
    regards
    Michal.

  • How to show busy cursor  when call webservice using as?

    I want to call webservice using script,but i don't know how
    to show busy cursor.please help me

    Show busy cursor:
    >>>
    CursorManager.setBusyCursor();
    <<<
    and hide it:
    >>>
    CursorManager.removeBusyCursor();
    <<<
    Don't forget to catch all events of the web-service to
    securely remove the busy cursor. Especially, you might wish to
    handle events of the 'results received' and the 'faults appeared'
    logical results.

  • How would I get visible busy cursor while calling ImageSnapshot.captureImage?

    Hi,
    I'm not sure if I understand correctly, but below is my very simple MXML file, where I try to show busy cursor before calling ImageSnapshot.captureImage. But instead my cursor dissapears atl all and then reappears after call is complete. Is it known functionality or should I use some callLater() call? Any help would be appreciated.
    My code:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
          xmlns:s="library://ns.adobe.com/flex/spark"
          xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
    <fx:Declarations>
      <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
    <fx:Script>
      <![CDATA[
       import mx.graphics.ImageSnapshot;
       import mx.graphics.codec.JPEGEncoder;
       import mx.managers.CursorManager;
       private function clickHandler() : void {
        CursorManager.setBusyCursor();
        const encoder:JPEGEncoder = new JPEGEncoder();
        var imageSnapshot:ImageSnapshot = ImageSnapshot.captureImage(mainContainer, 96, encoder, true);
        CursorManager.removeAllCursors();
      ]]>
    </fx:Script>
    <s:BorderContainer id="mainContainer" width="50%" height="50%">
      <s:Label x="40" y="44" text="My label" width="60" height="31"/>
      <s:Button x="30" y="79" label="Button" click="clickHandler()"/>
    </s:BorderContainer>
    </s:Application>

    I'm experiencing the same problem. ¿Did you solve it?
    It happens as if it were no background image defined for the bussy cursor.
    But I have seen that such image is defined in default.css inside framework.swc, so it should work...

  • Skype shows busy after the first call for any inco...

    Just for the sake of community I am posting this.  I have a new Lenovo Yoga 3 which I love.  Its running windows 8.1.  I have installed MS Office, BitDefender, Google Docs, Chrome, Opera, Dropbox and Skype.
    Prior to the new version of Skype 7 I was on version 6.21.104 and it worked fine for a long time.  When I switched to the new Skype 7 after buying my Yoga 3 it broke.  Now I rely on Skype heavilly for my work.  With version 7 after I receive a call, I could no longer receive any further calls I just show a busy banner and hear the error tone when people try.  I deinstalled Skype with special tools like revouninstaller. I cleaned the registry of all Skype entries. Removed all files.  Did it several times.  On this machine Skype 7 has a serious bug.
    MY ONLY Solution was to go to an older version of skype .. skype 6.021.104.  Works just fine now.
    Microsoft -- get your act together.  You are famous for putting out buggy software.  Skype in particular has been very bad over time -- so pull it together or we will switch to something else and others will follow.  By the way I am a software developer

    Ok, I've edited the VI you posted to reproduce my error (this time with 8.0). 
    I added a "master stop" and "start log" button.  To demonstrate my problem:
    1.  Run the VI
    2.  Click "START LOGGING" - c:\test.txt is created
    3.  Click "STOP" - c:\test.txt is closed
    4.  Delete the file c:\test.txt with Windows shell or explorer
    5.  Click "START LGGING" - a new c:\test.txt file should be created but instead an error is raised in the Write LabVIEW Measurement File function.
    Any ideas?
    Thanks,
    Dave
    Attachments:
    Write LV Meas File 2.vi ‏96 KB

  • Is there a way to show busy cursor in indesign during long processing?

    Hi
    I have created an extension for inDesign. It has long processing. I want to show busy cursor while processing.
    Can anybody help me out?
    Best regards
    Sal

    @ stephen - Busy cursor is shown only on the extension and not anywhere in inDesign with "CursorManager.setBusyCursor();"
    @ Vamitul - its still showing normal cursor with setting ScriptPreference.enableRedraw to false

  • Cursor shows as busy Firefox 3.5 / Gnome

    Ello
    I'm using Firefox 3.5 on Gnome and when I launch Firefox the cursor shows as busy for upto 30 seconds even though Firefox is fully loaded and I'm browsing about.  Firefox 3.11 was fine and I upgraded through Pacman to 3.5 when it became available.
    Out of curiosity I tried opening Firefor 3.5 in an Openbox session and all was fine, so it's something to do with Gnome.
    Anyone have any ideas?
    Last edited by Meyithi (2009-07-14 17:46:19)

    I also noticed this when I upgraded my system, under a week ago. I had not upgraded for probably a month before that.
    I first noticed this when opening shiretoko, but it also happens when I open an mp3 with vlc.
    I have also just been ignoring it. @_@

Maybe you are looking for

  • How to Breake Column in Classic report.

    Dear Friends i want to display Employee information so I have created classicreport using below sql query select EMP_ID, FIRST_NAME, MIDDLE_NAME, LAST_NAME, GENDER, BLOOD_GROUP, MARITAL_STATUS, ADDRESS_1, ADDRESS_2, CITY_NAME, PINCODE, PHONE_NO, MOBI

  • HELP! I cannot upload videos from my camera with Adobe Photoshop Album Starter Edition 3.2 anymore!

    I made a video with my Cannon Powershot camera and tried to upload it to my computer using the Album Starter (which i have done NUMEROUS times in the past successfully) and all of the sudden it will NOT work. IT says "CAnnot obtain files from this de

  • Lost all photos/albums from library after upgrade to 5.0.2

    After auto-updating iPhoto to version 5.0.2, I no longer have any photos or albums in my iPhoto library. Where did they go? I can't even find specific titles using a search of the hard drive. What can I do to get them back? -Mike

  • Exporting for non-widescreen TVs

    I exported a video to MPEG2-DVD then burned it onto a DVD. It plays perfectly on my TV. The problem is, my in-laws have an old, non-widescreen TV and the video is cut off around the edges. Is there any way to export specifically for non-widescreen TV

  • SharePoint 2013 Labeling deprectaed

    Hello, we are using Label in "Information management policy settings" for libraries to show the document version inside office documents  with "{Version}". This feature seems to be deprecated in SharePoint 2013: https://support.office.com/en-US/Artic