Hiding busy cursor during polling

Greetings,
I have a small flex/flash application which retieves an update every 1000 ms/ 1 second. The flash code has a timer which upon expiry calls an Adapter method and displays the result to the screen.
The sequence of events is:
1. In the window a timer is started for 1000 ms.
2. Upon expiry of the timer an adapter method is called to get the time string
3. The adapter method returns the time stamp which is displayed to the window
4. The timer is restarted
I have tried including the method call, CursorManager.removeBusyCursor()
But the busy cursor still appears when the adapter method is called and receiving a response.
Do I have to remove the busy cursor entirely for this to work? If so, how is that done?
I have found the command: CursorManager.RemoveCursor()
But what is the cursor ID for the busy cursor?
Do I call it AFTER I call the adapter method?
Many thanks,

The timer expiry is calling a flex method. The flex method is calling the Adapter method, a Java method.
Code snippet:
   private function startTimer():void {
    refreshTimer = new Timer(refreshInterval);
    refreshTimer.addEventListener(TimerEvent.TIMER,getTimeString);
    refreshTimer.start();
   private function getTimeString(event:TimerEvent):void {
    CursorManager.removeBusyCursor();
    var call:Object = RemoteSrv.getTimeString();
    call.marker = 'time';
    stopTimer();

Similar Messages

  • 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

  • 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

  • [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)

  • 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.

  • 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

  • TOO many OPEN CURSORS during loop of INSERT's

    Running ODP.NET beta2 (can't move up yet but will do that soon)
    I don't think it is related with ODP itself but probably on how .Net works with cursors. We have a for/next loop that executes INSERT INTO xxx VALUES (:a,:b,:c)
    statements. Apparently, when monitoring v$sysstat (current open cursors) we see these raising with 1 INSERT = 1 cursor. If subsequently we try to perform another action, we get max cursors exceeded. We allready set open_cursor = 1000, but the number of inserts can be very high. Is there a way to release these cursors (already wrote oDataAdaptor.dispose, oCmd.dispose but this does not help.
    Is it normal that each INSERT has it's own cursor ? they all have the same hashvalue in v$open_cursor. They seem to be released after a while, especially when moving to another asp.net page, but it's not clear when that happens and if it is possible to force the release of the (implicit?) cursors faster.
    Below is a snippet of the code, I unrolled a couple of function-calls into the code so this is just an example, not sure it will run without errors like this, but the idea should be clear (the code looks rather complex for what it does but the unrolled functions make the code more generic and we have a database-independend datalayer):
    Try
    ' Set the Base Delete statement
    lBaseSql = _
    "INSERT INTO atable(col1,col2,col3) " & _
    "VALUES(:col1,:col2,:col3)"
    ' Initialize a transaction
    lTransaction = oConnection.BeginTransaction()
    ' Create the parameter collection, containing for each
    ' row in the list the arguments
    For Each lDataRow In aList.Rows
    lOracleParamters = New OracleParameterCollection()
    lOracleParameter = New OracleParameter("luserid", OracleDbType.Varchar2,
    _ CType(aCol1, Object))
    lOracleParamters.Add(lOracleParameter)
    lOracleParameter = New OracleParameter("part_no", OracleDbType.Varchar2, _
    CType(lDataRow.Item("col2"), Object))
    lOracleParamters.Add(lOracleParameter)
    lOracleParameter = New OracleParameter("revision", OracleDbType.Int32, _
    CType(lDataRow.Item("col3"), Object))
    lOracleParamters.Add(lOracleParameter)
    ' Execute the Statement;
    ' If the execution fails because the row already exists,
    ' then the insert should be considered as succesfull.
    Try
    Dim aCommand As New OracleCommand()
    Dim retval As Integer
    'associate the aConnection with the aCommand
    aCommand.Connection = oConnection
    'set the aCommand text (stored procedure name or SQL statement)
    aCommand.CommandText = lBaseSQL
    'set the aCommand type
    aCommand.CommandType = CommandType.Text
    'attach the aCommand parameters if they are provided
    If Not (lOracleParameters Is Nothing) Then
    Dim lParameter As OracleParameter
    For Each lParameter In lOracleParameters
    'check for derived output value with no value assigned
    If lParameter.Direction = ParameterDirection.InputOutput _
    And lParameter.Value Is Nothing Then
    lParameter.Value = Nothing
    End If
    aCommand.Parameters.Add(lParameter)
    Next lParameter
    End If
    Return
    ' finally, execute the aCommand.
    retval = cmd.ExecuteNonQuery()
    ' detach the OracleParameters from the aCommand object,
    ' so they can be used again
    cmd.Parameters.Clear()
    Catch ex As Exception
    Dim lErrorMsg As String
    lErrorMsg = ex.ToString
    If Not lTransaction Is Nothing Then
    lTransaction.Rollback()
    End If
    End Try
    Next
    lTransaction.Commit()
    Catch ex As Exception
    lTransaction.Rollback()
    Throw New DLDataException(aConnection, ex)
    End Try

    I have run into this problem as well. To my mind
    Phillip's solution will work but seems completey unnecessary. This is work the provider itself should be managing.
    I've done extensive testing with both ODP and OracleClient. Here is one of the scenarios: In a tight loop of 10,000 records, each of which is either going to be inserted or updated via a stored procedure call, the ODP provider throws the "too many cursor errors at around the 800th iteration. With over 300 cursors being open. The exact same code with OracleClient as the provider never throws an error and opens up 40+ cursors during execution.
    The applicaation I have updates a Oracle8i database from a DB2 database. There are over 30 tables being updated in near real time. Reusing the command object is not an option and adding all the code Phillip did for each call seems highly unnecessary. I say Oracle needs to fix this problem. As much as I hate to say it the microsoft provider seems superior at this point.

  • 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();

  • Busy Image  to go along with Busy Cursor

    Hello,
      I am looking for the best way to show a busy image to go along with the Busy Cursor in a title window inside of my flex app.  I originally thought I could just embed a GIF image and it would animate just like a regular GIF does, but this doesnt happen without using some other 3rd party actionscript.  I know there are animations that can do this, but I am unfamilar with how these exactly work and if I have to start with an original image to animate.  I also dont know much about making a .fla file either then export it to a .swf.  Just looking for a direction to focus on since there seems to be multiple ways to accomplish this.  It just needs to be a circle that fades a section out as it rotates.  Thank you for taking the time to read my post.  Please let me know if you are confused or need any further information.
    Thanks again!
    James

    Greeting!
    I have a similar model "L455-S5008".  Motherboard # "K000093580".
    I have a post about it on the video section. Please look at the pic I uploaded & tell me what it is.
    My client's system does the same thing except it has no cursor just a black screen & all power to the laptop board. Along with  dvd/rw, wireless,HDD & power indicators illuminated. It just powers on & off own its own with no response when I press the esc or F10 buttons like some models do & cause it to stay running. This is a pic of the small chip.
    Attachments:
    100_1364.JPG ‏487 KB

  • No "busy" cursor in FF 3.5

    Performed a system upgrade today and restarted, as I was instructed. Started FF (Shiretoko) and it is dead slow moving from page to page, and there is no "busy" cursor. I'm running 64-bit Arch. What other information might someone need to offer fixes?
    Tim

    anybody able to help?
    i see lots of simular threads but i have tried most of what is being offered, and i'm not sure if 32bit solutions are the same as 64bit solutions.

  • Change busy cursor

    Hi guys,
       I am trying to change app's busy cursor, but haven't been successful yet.  I have create a .swf file that work fine.  Next I tired the following code in my application init fuction
                    var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("CursorManager");
    if (!style) {
    style = new CSSStyleDeclaration();
    style.setStyle( "busyCursor", myBusyCursor );
    StyleManager.setStyleDeclaration("CursorManager", style, false);
    but this does not do anything.  I am using showbusycursor="true" on all my RPC calls, and some depending on the query could take a sec longer.  I just want to override the animated clock with my .swf through out the app.
    Any pointer?  I have spend about a day and half but no luck.  I understand that CursorManager.setBusyCursor() will actually show the cursor, which is not what I want since I don't make a call to show busy cursor explicitly
    Thank you
    Jay

    Hi,
    Just override the default cursor after you call your process, then on complete clear the cursor.
    The following example will set the cursor to a custom cursor, note that by setting the custom cursor the busy cursor will be over riden (in this particular case even if you try to set the busy cursor after the custom cursor).
    David
    <?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/halo" minWidth="1024" minHeight="768">
    <fx:Declarations>
    <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
    <fx:Script>
    <![CDATA[
    import mx.managers.CursorManager;
    [Embed(source="sizeAll.gif")] public static var myCursor:Class;
    private function modifyCursor(): void
    //call a process here
    this.cursorManager.setCursor(myCursor, 2, -10, -10);
    ]]>
    </fx:Script>
    <s:Button x="72" y="49" label="Mod Cursor" click="modifyCursor()"/>
    <s:Button x="72" y="89" label="Show Busy" click="this.cursorManager.setBusyCursor()"/>
    <s:Button x="72" y="129" label="Remove Cursor" click="this.cursorManager.removeAllCursors()"/>
    </s:Application>

  • Busy cursor on Web

    We are currently moving our application to the Web and find that the Busy cursor style remains an arrow - how can we change this?

    Flex har
    UI:
    This was not AIR, it is Flex 3.
    The WMODE is normal.
    However I have solved my problem.
    Originally I wanted to completely replace any active cursor with the busy cursor. The problem (to review) was that the orignal cursor would not go away, and would appear on top of the busy cursor, and then when moving the mouse, the busy cursor would trail after the original cursor, and the two cursors would kind of join up again. So it was really annoying.
    I did find the following which sort of solved the problem:
    Mouse.hide;
    this.mouseChildren=false;
    CursorManager.setBusyCursor();
    With the above, the original cursor would go away and stay gone, *once the mouse was moved*, leaving only the busy cursor. Why it was necessary to move the mouse, I have no idea. So this as well did not completely solve the problem (but came much closer).
    Here was my final solution:
    First of all, I had not noticed previously that the standard busy cursor in the browser keeps the original pointer, and just offsets an hourglass to the right of that pointer by a fixed distance.  Don't know why I had not notice that before.  So all I had to do was
    csr_busy = CursorManager.setCursor( StyleManager.getStyleDeclaration("CursorManager").getStyle("busyCursor"),1,20,0);
    at one place, and then to remove it later,
    CursorManager.removeCursor(csr_busy);
    That's it.  the '20' parameter just keeps the busy cursor (an animated clock) 20 pixels to the right of the original cursor (whatever it happens to be at the time - a pointer, a hand, etc.), which from my experience is impossible to completely remove anyway, so I don't try.  But it looks good as I have it now, and contrary to what I originally thought is consistent with the Browser's own busy cursor.

  • After recovery from backup Creative Cloud Desktop shows spinning blue busy cursor

    After a sysem mis-adventure I had to do a complete reinstallation of the OS (10.9 Mavericks) on my Mac Pro. Now when I open Creative Cloud Desktop I get the window with HOME active and the other selections such as Apps, Files, Fonts etc grayed out. In the middle of the window is a spinning blue busy cursor.
    Clearly something needs to be reauthorized but I don't know what that is or how to do it.
    Help?

    After a sysem mis-adventure I had to do a complete reinstallation of the OS (10.9 Mavericks) on my Mac Pro. Now when I open Creative Cloud Desktop I get the window with HOME active and the other selections such as Apps, Files, Fonts etc grayed out. In the middle of the window is a spinning blue busy cursor.
    Clearly something needs to be reauthorized but I don't know what that is or how to do it.
    Help?

  • CS6 spinning "busy" cursor while saving in background.

    On Mountain Lion and Mavericks GM, Photoshop CS6 displays (flickers) the spinning "busy" cursor while either auto-saving or saving in the background.  The cursor is the Adobe black dot variety, not the OSX beach ball.  It flickers rapidly between the spinning balls and the currently used Photoshop cursor, for the duration of a save or auto-save.  For a multi gigabyte file, this can mean a several minutes of flickering.
    I can work while saving, but obviously with a flickering cursor, it's difficult.  Interestingly, the flickering only starts after the second save after restarting Photoshop; i.e. I start Photoshop, open a file, save, and it's fine.  Then I continue working and save again, or auto-save, and the spinning/flickering starts while saving.  It won't go away unles I restart Photoshop again, and comes back on the second save of the next session.
    Machine is a Mac Pro 2 x 2.93 6-Core with 32GB RAM and running an Nvidia Quadro 4000.  Scratch disk is a dedicated internal 120gb SSD.
    Performance settings for CS6 were tweaked multiple times to no avail.  Fonts caches removed.  Permissions repaired.  PRAM reset.  Basically all the standard troubleshooting methods were attempted. 
    On Snow Leopard, I have zero issues with this.  On upgrading to Mountain Lion last year, the cursor began flickering, so I reverted to Snow Leopard.  This year, I installed Mavericks GM in the hopes it would be remedied, but the flickering returned.  I have reverted again to Snow Leopard and everything is back to normal.
    The only thing I can try at this point is a clean install of ML or Mavericks, instead of the upgrade I've been doing.  This would be a considerable hassle, so I am asking here first if there's anything I can do before trying that.
    Thanks.
    Rob

    Hi Rob,
    I just discovered your message after many research on the internet. I'm actually experiencing the same issue, this "busy"cursor while autosaving.
    Like you, I used to have no problem at all on Snow Leopard.
    My machine is a Macpro 2,8Ghz Quad core with 16GB Ram.
    Could you find a solution  to your problem?
    Thank you
    Stéphane

  • No busy cursor when open document

    Hi,
    I have 32-bit Arch with Gnome. When I launch an app, say OpenOffice, from the menu, the cursor will turn into a busy one (indicating something working in the background). That's fine. However, when I click on a .doc file. The cursor stays the same (just the arrow) and openoffice pop up after awhile. This is very annoying because it causes me to open serveral instances of the app and slow down my computer because I don't know if it will open or not. Please help me fix this. Thanks

    I don't think there's any way to "fix" it. OO can ask for a "busy" cursor to be displayed within its own window, but how can it have a cursor with no window? Another word processor might start up faster though. Or perhaps you could refrain from frantically clicking on the file while you wait.

Maybe you are looking for