Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Over 10 years of community discussion and knowledge are maintained here as a read-only archive.

New discussions should be taken up in issues on the appropriate projects at https://github.com/PureMVC

Pages: [1]
Print
Author Topic: Show Busy Cursor on Remote Call?  (Read 11262 times)
Westside
Jr. Member
**
Posts: 12


View Profile Email
« on: November 25, 2008, 04:01:18 »

Hi,

I am working with remote objects and when I use the <mx:RemoteObject> tag there is a property called "showBusyCursor", this displays a little clock wheel that suggests the page is loading.   I am new to Flex for the most part and PureMVC but I have a "RemoteDelegate.as" Class that I am using and in it there I have the following code:

public function RemoteDelegate( responder:IResponder, url:String ) {
   ro = new RemoteObject();
   ro.destination = "ColdFusion";
   ro.source = url;
   ro.showBusyCursor = true;  // this does not work for some reason 
  this.responder = responder;
}

1. So, the first question is how can I get the showBusyCursor to work when I am creating my Remote Object through ActionScript as opposed to MXML.

2. How can I use a custom loader icon/animation/progress bar of some sort.  I would like to have some modal window popup  with a progress bar or something and say "Logging In"

Any help highly appreciated.

Thanks,

-Westside
Logged
Westside
Jr. Member
**
Posts: 12


View Profile Email
« Reply #1 on: November 25, 2008, 04:54:17 »

Hi,

Well, it turns out the answer was I was importing a different, but very similar class.

// OLD CODE
import mx.rpc.remoting.RemoteObject;

// NEW CODE
import mx.rpc.remoting.mxml.RemoteObject;

By using the latter, I am now able to get the "showBusyCursor"

At first glance these two classes seem very similar. 

-Westside
   
Logged
Pages: [1]
Print