Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1107
  • Last Modified:

Display Flex 'progress bar' until results are retrieved

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)"  />
</mx:RemoteObject>      

any idea if that would be the right approach?

thanks
0
royjayd
Asked:
royjayd
  • 4
1 Solution
 
Pravin AsarPrincipal Systems EngineerCommented:
Use  attribute

showBusyCursor="true"

for RemoteObject
0
 
Pravin AsarPrincipal Systems EngineerCommented:
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

StyleManager.getStyleDeclaration("CursorManager").setStyle("busyCursor",myBusyCursor);
0
 
royjaydAuthor Commented:
mycustom.swf  --> do i download this ? I am using flex 3.5 sdk
0
 
Pravin AsarPrincipal Systems EngineerCommented:
This will be something you will make.

0
 
Pravin AsarPrincipal Systems EngineerCommented:
0

Featured Post

Managing Security Policy in a Changing Environment

The enterprise network environment is evolving rapidly as companies extend their physical data centers to embrace cloud computing and software-defined networking. This new reality means that the challenge of managing the security policy is much more dynamic and complex.

  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now