Let's say the function foo () is executed. Suppose an external event occurs for which you have a handler. Will the foo () function be interrupted so that the event handler can be executed? What is the order of execution in this situation?
No, foo()it will not be interrupted.
foo()
Flex is single-threaded, so it foo()will continue to work. After foo () finishes and control returns to the event loop, the first event in the event queue will be processed.
It really can be tricky.
, Flash , , , #. , . , , .
:
Dr_Asik, , , . , . .
. . "" , . , foo() "Main" UI, , foo(), . foo() , . , foo() , , .
, foo() UI.
2 , foo() . .
# , Control.Invoke().
Flash, , . , Flash , #. , , , #, Java Delphi.