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 results may not come 
back for a while, but when it does, whatever statements you are executing at 
the time will not be interrupted

Alex Harui
Flex SDK Developer
Adobe Systems Inc.<http://www.adobe.com/>
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of mike_slinn
Sent: Friday, August 28, 2009 9:04 AM
To: flexcoders@yahoogroups.com
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