I have the following code in page1.php :
<a href="page2.php" onClick="javascript:callFlash();">Go to page</a>
This calls a function in a Flash movie on page1.php and opens page2.php.
My question is this:
Can I be sure that the flash function will always be called and finish executing before page2.php is called? (The flash function actually saves some data to a local shared object).
Or should I add a bit of code to the flash function to getURL("page2.php"); when it’s done.
any thoughts
cheers
If you definitely need the page to open after the flash function is done, then the only way to guarantee that is to redirect from the flash function as you already figured.