Nope, the model didn't change.  The Player will do stuff in the background for you like sending the RemoteObject call and sending the WebService but once it starts executing ActionScript it's single-threaded.

 

Matt

 

-----Original Message-----
From: Navita Bhoir [mailto:[EMAIL PROTECTED]
Sent: Friday, April 30, 2004 4:52 PM
To: [email protected]
Subject: RE: [flexcoders] "wait loop" to synchronize asyncronous call?

 

Matt,

 

I heard that single threaded model was resolved with the new Flash Player (7.0). Is it true ?

 

rgds,

navita

 

-----Original Message-----
From: Matt Chotin [mailto:[EMAIL PROTECTED]
Sent: Friday, April 30, 2004 4:49 PM
To: '[email protected]'
Subject: RE: [flexcoders] "wait loop" to synchronize asyncronous call?

Hi,

 

The Flash Player doesn't support a threading model like you're looking for.  There is only one thread for ActionScript code.  So if the processing you're talking about is on the server what you'll do is call your service, then place any code that depends on that service having completed in some function that will be called by your service's result handler.  You can also put up a shim to block all user-interaction in the meantime if the busy cursor isn't enough.  I think we have an example of that in our extras folder.

 

Matt

 

-----Original Message-----
From: nts333rd [mailto:[EMAIL PROTECTED]
Sent: Friday, April 30, 2004 4:29 PM
To: [email protected]
Subject: [flexcoders] "wait loop" to synchronize asyncronous call?

 

I'd like to set up a loop that will block current processing until
some condition is met.

setInterval, and the various timers I see on the forums allow one to
run some function after some interval for animation effects and
such.  But I need an implementation that will allow me to do
something like:

.....
do{
  //just wait
}(while mycomponent.isDataReady == false)   //DOES NOT WORK

processData(myComponent.getData);
...

Any suggestions?

Thanks,
Tracy

 

Reply via email to