[flexcoders] Re: How come setting the responder (async token) after the server call does WORKS???

2009-04-29 Thread Adnan Doric
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.

[flexcoders] Re: How come setting the responder (async token) after the server call does WORKS???

2009-04-29 Thread valdhor
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

[flexcoders] Re: How come setting the responder (async token) after the server call does WORKS???

2009-04-29 Thread Mehdi
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

[flexcoders] Re: How come setting the responder (async token) after the server call does WORKS???

2009-04-30 Thread Mehdi
; _ > > 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

[flexcoders] Re: How come setting the responder (async token) after the server call does WORKS???

2009-04-30 Thread valdhor
> > > > 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 > >

RE: [flexcoders] Re: How come setting the responder (async token) after the server call does WORKS???

2009-04-29 Thread Tracy Spratt
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