Busy cursor on swf remains turning

Hello,
Am having a problem. I developed a simple application on flex
2 and it communicates with Coldfusion .cfc file.
Pleaes find the codes for my application and my cfc below.
When I click the button, it does everything that the cfc
says...for example inserting records in a table etc. However the
cursor remains still busy after all the actions have been
performed, and the memory usage of my cpu peaks during this moment.
Here is my flex mxml code :
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute">
<mx:Script>
<![CDATA[
import mx.formatters.DateFormatter;
import mx.controls.dataGridClasses.DataGridColumn;
import mx.controls.dataGridClasses.DataGridListData;
import mx.events.DragEvent;
import mx.collections.*;
import mx.collections.ArrayCollection;
import mx.rpc.events.ResultEvent;
import mx.controls.Alert;
import mx.events.CloseEvent;
import flash.events.Event;
import mx.containers.*;
import mx.controls.List;
import flash.events.Event;
import flash.events.MouseEvent;
import mx.events.ListEvent;
import flash.display.DisplayObject;
import mx.managers.PopUpManager;
import mx.utils.StringUtil;
import flash.utils.Timer;
import flash.events.Event;
import mx.containers.TitleWindow;
import mx.containers.Panel;
import flash.geom.Point;
import flash.net.*;
import mx.core.IFlexDisplayObject;
import mx.core.DragSource;
import mx.managers.DragManager;
import mx.events.DragEvent;
import mx.collections.IList;
import mx.controls.DataGrid;
import mx.containers.Grid;
import mx.managers.CursorManager;
public function BtnHandler():void{
myService.myfnc();
]]>
</mx:Script>
<mx:RemoteObject id="myService" destination="ColdFusion"
source="components.mycfc" showBusyCursor="true"
fault="Alert.show(event.fault.message,'Error')">
<mx:method name="myfnc"
fault="Alert.show(event.fault.message)"/>
</mx:RemoteObject>
<mx:Button x="264" y="122" label="Button"
click="{BtnHandler();}"/>
</mx:Application>
And here is my cfc code :
<cfcomponent>
<cffunction name="myfnc" access="remote"
returntype="any">
<cfquery name="myQuery" datasource="mydb">
Insert....into table...
</cfquery>
</cffunction>
I don't get any errors in flex or my cfc.
Note that when I test this function separately in a cfm, it
works fine and executes within a few seconds.
Anyone can help me with this. Is this a problem with Flex or
could it be my cfc.

No, but this is very simple.
In the function where you invoke send(), call:
CursorManager.setBusyCursor;
In your result handler, call:
CursorManager.removeBusyCursor;
Tracy

Similar Messages

  • 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

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

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

  • Busy Cursor

    I have a form that takes a while to submit. How can I turn on the busy cursor?

    Flip the sample around a bit... and you are guaranteed at least one frame of busy cursor.
                private function doStuff():void
                    CursorManager.setBusyCursor();
                    for ( var i:int = 0; i < 10000; i++ )
                        // zzzzz....
                    callLater( hideBusyCursor );
                private function hideBusyCursor():void
                    CursorManager.removeBusyCursor();
    If you don't mind my asking... what are you trying to do? There might be an 'ideal' way to approach this if we knew the context in which you are trying to implement this behavior.

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

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

  • Is there any where that I can voice why I returned my beloved new Ipad? I was told I could move my Keynote presentations to it and then use it for my business presentations. Unfortunately that turned out to not be true. I need the IPad to work with a remo

    Is there any where that I can voice why I returned my beloved new Ipad? I was told I could move my Keynote presentations to it and then use it for my
    business presentations. Unfortunately that turned out to not be true. I need the IPad to work with a remote.
    The Ipad is on a short cable to my projector. I am usually on a podium 30 feet away. No infra red receiver on the IPad and
    the Iphone remote needs wi fi which is not always available in all the locations I do my teaching and lecturing in.
    If you can build a remote into the Ipad in the future I would really like to use an Ipad to replace my heavier lap top for business travel. Thank You Kathy McNeil.

    "The Ipad is on a short cable to my projector."
    Get a longer cable?

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

  • 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

  • Some apps "use cellular data" will not remain turned off

    some apps "use cellular data" will not remain turned off
    No matter how often I go to settings>cellular and turn off the apps, as soon as I close that screen they automatically turn back on.
    I prefer not to delete the apps and reload them as I will loose the data in them when they are removed.
    Thanks for the help.

    First thing and easiest thing to try is a device reset:
    Device Reset (won't affect settings/data/music/apps/etc)
    1. Press and hold (& continue to hold) BOTH the Sleep/Wake button & the Home button.
    2. Continue to hold BOTH (ignoring any other messages that may show) until you see the Apple logo on the screen.
    3. Release BOTH buttons when you see the Apple logo and allow the device to boot normally.

  • 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

  • Cursor freezes then screen turns blue....

    Hi All. This is the only issue my MacPro has had in the 1.5 years or so that I've owned it. Every once in a while the cursor freezes, the screen turns blue for about 4 seconds then everything goes back to normal. It's not really a problem but it's kind of annoying. Has anyone else seen this strange behavior? I'm thinking that re-installing the OS would fix it but that seems a little drastic.
    Any ideas?

    Hi, How much Free Space on your HDD?
    Two ways to go on this...
    "Try Disk Utility
    1. Insert the Mac OS X Install disc that came with your computer, then restart the computer while holding the C key.
    2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu. (In Mac OS X 10.4 or later, you must select your language first.)
    *Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.*
    3. Click the First Aid tab.
    4. Click the disclosure triangle to the left of the hard drive icon to display the names of your hard disk volumes and partitions.
    5. Select your Mac OS X volume.
    6. Click Repair. Disk Utility checks and repairs the disk."
    http://docs.info.apple.com/article.html?artnum=106214
    Then Safe Boot, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, reboot when it completes.
    The usual reason why updates fail or mess things up, is if Permissions are not fixed before & after every update, with a reboot... you may get a partial update when the installer finds it doesn't have Permissions to change one obscure little part of the OS, leaving you with a mix of OS versions.
    Some people get away without Repairing Permissions for years, some for only days.
    If Permissions are wrong before applying an update, you could get mixed OS versions, if Directory is the slightest messed up, who knows!
    Or...
    I think you should get Applejack...
    http://www.versiontracker.com/dyn/moreinfo/macosx/19596
    After installing, reboot holding down CMD+s, then when the DOS like prompt shows, type in...
    applejack AUTO
    Then let it do all 5 of it's things.
    At least it'll eliminate some questions if it doesn't fix it.
    The 5 things it does are...
    Correct any Disk problems.
    Repair Permissions.
    Clear out Cache Files.
    Repair/check several plist files.
    Dump the VM files for a fresh start.
    First reboot will be slower, sometimes 2 or 3 restarts will be required for full benefit... my guess is files relying upon other files relying upon other files!
    Disconnect the USB cable from any UPS so the system doesn't shut down in the middle of the process.

Maybe you are looking for

  • BADI for Purchase  Order

    Hi,Friends I Want to Implement BADI , Which is already available in SAP. The Path for BADI is given below. SPRO->SAP Reference IMG->Materials Management->Purchasing->Business Add-Ins for Purchasing Name of BADI 1 Control of Pricing Type: Additional F

  • Will not open comic strips but does open political cartoons

    Safari v5.1 has one problem; When opening MSNBC.com it will open political cartoons and other graphics OK, but will not open the comics section.  Firefox has no problems with that, so I assume that the problem is within safari.

  • Filters not showing up values

    Hi Gurus,    I am working on some reports in WAD.    I have characteristic "Region" which has 4 values like EAST,WEST,SOUTH,NORTH. This is a User Entry so I created a variable for this and it shows the values with check boxes beside it when you click

  • Problem with Exported ant build script(WLS 8.1SP4) working with IBMJDK1.4.2

    Hi, I am trying to use the exported ant script from wls workshop for building the process application.But i am using IBM JDK 1.4.2 in AIX 5.2 box. IBM has disintegrated the rt.jar by SUN into a number of other jar files.When i run the ant script, i h

  • Need Robohelp's PDF writer again

    I seem to have deleted RoboHelp's PDF writer from my list of printers. Is there any way to add it back without reinstalling the entire Creative Suite2? As a note, Robo generated lots of files for outputting a PDF in the SSL and then just vanished wit