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: [email protected] [mailto:[email protected]] On Behalf 
Of mike_slinn
Sent: Friday, August 28, 2009 9:04 AM
To: [email protected]
Subject: [flexcoders] Re: Race conditions when event handlers triggered from 
different targets



> Because actionscript is single-threaded, your scenario cannot happen.

Alex,

That statement is often repeated, but I believe that it is incorrect. The main 
thread is responsible for rendering and AMF deserialization. URLLoader runs in 
its own thread. Pixel Bender runs in its own thread 
(http://www.jamesward.com/blog/2009/04/29/announcing-pbjas-an-actionscript-3-pixel-bender-shader-library/)

I have asked for AMF deserialization be moved to another thread 
(http://bugs.adobe.com/jira/browse/FP-2398)

It would be great if better documentation on the Flash player's threads was 
available.

Mike

Reply via email to