The key word is "asynchronous".
"httpsrv.send()" is asynchronous so it gets executed after all synchronous
statements (addResponder is synchronous) in the same block.
cheers,
Adnan
--- In flexcoders@yahoogroups.com, "Mehdi" wrote:
>
> This is a question that has been bothered me for some time.
The service is invoked asynchronously so Flex just invokes the send and keeps
executing.
Unless the call to the service and its response is faster than the computer
executing (read "will never happen") then the responder will be added before
the call returns.
--- In flexcoders@yahoogroups.co
I see. So shall I read your response as:
Flex asynchronous methods get queued up and are only invoked once ALL
synchronous calls in the same block get executed.
So I were to have the following:
var asyncToken:ASyncToken
public function callServer():void
{
asyncToken= httpsrv.send();
}
publ
; _
>
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> Behalf Of Mehdi
> Sent: Wednesday, April 29, 2009 11:49 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: How come setting the responder (async token) after
> the server call do
> >
> > From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> > Behalf Of Mehdi
> > Sent: Wednesday, April 29, 2009 11:49 AM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Re: How come setting the responder (async token) after
> >
groups.com
Subject: [flexcoders] Re: How come setting the responder (async token) after
the server call does WORKS???
I see. So shall I read your response as:
Flex asynchronous methods get queued up and are only invoked once ALL
synchronous calls in the same block get executed.
So I were t
6 matches
Mail list logo