RE: [flexcoders] Re: Race conditions when event handlers triggered from different targets

2009-09-17 Thread Alex Harui
IMHO, Once you get the runtime error dialog, all further behavior is undefined. Your code has finished executing and the player is no longer executing its standard workflow. Alex Harui Flex SDK Developer Adobe Systems Inc. Blog: http://blogs.adobe.com/aharui From: flexco

RE: [flexcoders] Re: Race conditions when event handlers triggered from different targets

2009-08-29 Thread Alex Harui
e.com/> Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Alex Harui Sent: Saturday, August 29, 2009 3:08 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Race conditions when event handlers triggered from different targets

RE: [flexcoders] Re: Race conditions when event handlers triggered from different targets

2009-08-29 Thread Alex Harui
I doubt we'd document the exact behavior of some of these calls. First, we'd want to reserve the right to change them as the underlying platforms change, and further, the implementation of some things depend on the platform and the goal of the player is to abstract them from you. Your only hoo

RE: [flexcoders] Re: Race conditions when event handlers triggered from different targets

2009-08-29 Thread Tracy Spratt
Yes, Gordon and Alex have agreed with this, that async methods are handled in different threads. But the original poster's concern was regarding developer code within the AVM: "If A' starts executing before B', will it run to completion before B' starts executing, or could their execution be

RE: [flexcoders] Re: Race conditions when event handlers triggered from different targets

2009-08-28 Thread Gordon Smith
Yes, the Player has multiple threads. But the ActionScript Virtual Machine executes in only one of them. And the AVM executes one event handler before starting another event handler. You're not actually claiming to have proof to the contrary, are you? Gordon Smith Adobe Flex SDK Team From: fle

RE: [flexcoders] Re: Race conditions when event handlers triggered from different targets

2009-08-28 Thread Alex Harui
I said that actionscript is single threaded. Some API calls are asynchronous and non-blocking, but for sure, when you execute one statement in actionscript, that statement and the statement after will be executed without interruption. If the statement invokes an asynchronous operation, the res