Hi,
As far as I understand, all JavaScript code is event-driven and executes on a single browser thread.
However, I have some JavaScript functions that are called from within a SWF object sitting on the same page. Is this code run in the same manner as regular JS code, or is it on some separate Flash thread?
If it is on a separate thread, can I use setTimeout() to get it to run on the JS events thread? e.g.:
function calledFromFlash() {
setTimeout(doActualWork, 0);
}
function doActualWork() {
// blah blah blah
}
Thanks, Karthik