Display Flex 'progress bar' until results are retrieved

Posted on 2011-04-26
Last Modified: 2012-05-11
hi guys

When i am accessing a remote object from my flex client i want to display a
progress bar but not sure how to do it.

public function onResult( event : * = null ) : void
 remoteObject.getData(object);  //remote call
 //here i want to have the code to display a Progress bar until  the data is returned
  // dispatchEvent(new ProgressBarEvent(ProgressBarEvent.PROGRESS_BAR_EVENT, false, false, false)); ??

 <mx:RemoteObject id="remoteObject" destination="BusinessService">
<mx:method name="getData" result="onResult(event)"  />

any idea if that would be the right approach?

Question by:royjayd
    LVL 28

    Expert Comment

    by:Pravin Asar
    Use  attribute


    for RemoteObject
    LVL 28

    Expert Comment

    by:Pravin Asar
    For custom flash animation swf, use following

    // Embed object
    // This can be global declaration
    [Embed('../resources/mycustom.swf')] public static const myBusyCursor : Class;

    // Define Custom Busy Cursor
    //  Apply the at time of creation


    Author Comment

    mycustom.swf  --> do i download this ? I am using flex 3.5 sdk
    LVL 28

    Expert Comment

    by:Pravin Asar
    This will be something you will make.

    LVL 28

    Accepted Solution


    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Join & Write a Comment

    First things first - Preparation We need all the part for this install and it's much nicer to have them all on hand when you need them so here's what's required. Download Eclipse 3.5 32 bit (I like the Classic flavour) from here. (http://www.e…
    I've been asked to discuss some of the UX activities that I'm using with my team. Here I will share some details about how we approach UX projects.
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now