Flash is asynchronous. When making a flash remoting service method call flash
does not wait for a response before executing the next command. I have a
program that needs to wait for a response from the server. That is I need the
server to send me the name of the current user after which I call the server
again to return that users information.
How do I make the initial call to retrieve a user and then wait for the
server to respond before looking up the users data.
I understand how to declare a response object. yet I do not feel it
accomplishes my end goal.
egorlebowski - 10 Dec 2004 22:38 GMT
Look into using EventDispatcher...you can set up your response object to
broadcast an event when it receives a successful result from the server. A
second object would then listen for this event and make the second server call
from its event handler function...
FF - 10 Dec 2004 22:52 GMT
Mele Kalikimaka Aloha-
I may be assuming too much here, but why not pass back any user information
at the time this user originally logs into application?
> That is I need the
> server to send me the name of the current user after which I call the server
> again to return that users information.