Hi,
I would like Javascript to run an actionscript in flash with fscommand, which loads a xml page and returns some content of it to the javascript. The problem is that javascript does not wait for the termination of the fscommand, as it takes time to download the xml from the server, but continues with the next command. I should make Javascript wait for termination of the xml download resp. successful presentation of the value by flash. However, I cannot idle javascript by running a loop as this blocks any flash/actionscript code execution... is there any way to make javascript idle and allow other processes to continue (something like DoEvents() in VB)?
Any help is welcome!
Thanks,
Conrad
I would like Javascript to run an actionscript in flash with fscommand, which loads a xml page and returns some content of it to the javascript. The problem is that javascript does not wait for the termination of the fscommand, as it takes time to download the xml from the server, but continues with the next command. I should make Javascript wait for termination of the xml download resp. successful presentation of the value by flash. However, I cannot idle javascript by running a loop as this blocks any flash/actionscript code execution... is there any way to make javascript idle and allow other processes to continue (something like DoEvents() in VB)?
Any help is welcome!
Thanks,
Conrad