Does dispatching an event interrupt a function?
问题 Let's say function foo() is executing. Suppose that an external event occurs, for which you have a handler. Will function foo() be interrupted so that the event handler can be executed? What is the order of execution in this situation? 回答1: No, foo() will not be interrupted. Flex is single-threaded, so foo() will continue running. Once foo() finishes and control is returned to the event loop, then the first event in the event queue will be processed. 回答2: This actually can be sorta tricky. I