Can anyone shed a light on how code execution flows when you have JS
calling AS function which calls another JS function? I seem to be
getting a very unpredictable race conditions.
So here's how my code kind of looks like:
[JS]
JSLine1();
swfMov.callASFuncA(); // this calls AS functions
JSLine3();
[AS]
function ASFuncA()
{
ASLine1();
ExternalInterface.call("callJSFuncB");
ASLine3();
}
So does JSLine3() get called before callJSFuncB()? Or does the code
execution hangs on callASFuncA() until it returns? And what about
ASLine3(), when is it gonna get called?
Thanks for the help!