all groups > macromedia flash flash remoting > december 2004 >
You're in the

macromedia flash flash remoting

group:

Synchronous programming


Synchronous programming aloha_developer
12/7/2004 9:55:40 PM
macromedia flash flash remoting:
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.
Re: Synchronous programming FF
12/10/2004 2:52:44 PM

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?



in article cp58ss$bn8$1@forums.macromedia.com, aloha_developer at
webforumsuser@macromedia.com wrote on 12/7/04 1:55 PM:

[quoted text, click to view]

Re: Synchronous programming egorlebowski
12/10/2004 10:38:50 PM
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...
AddThis Social Bookmark Button