I have some evidence of the state of the race [Note: see update below] in ActionScript 3 (as3), in which a specific object has methods:
- When it processes asynchronous loading events
- From a script added to the frame in the movie clip timeline
What is a concurrency model in AS3? Is event processing serialized (i.e., each handler ends for one event after another, despite some basic multithreading)? And are the frame scenarios serialized with this stream of events? I suspect the answer to this last question is no.
I am taking steps to systematically record whether / when a race condition occurs, but it would be nice to know what guarantees (if any) AS3 provides.
UPDATE: I did a simple check in the event handlers to record whether the event handler was being processed on a particular object of interest, and I found that this was happening, i.e. race conditions. Has anyone else come across this and what have you done with this ?!
source
share