Wednesday, July 4, 2007

Flash Troubleshooting - ActionScript 3.0 - navigateToURL(); not working consistently


Using the navigateToURL(); method can result in inconsistent results if you are sending more than one javasript call in the same function. Since navigateToURL(); is an asynchronous call, if two javascript calls are made from Flash at the same time, one of them may be dropped. The alternative is to use the ExternalInterface, which is a synchronous call, but beware of Flash Player 8 minor version 16 as it can cause a memory leek, resulting in the user's browser crashing.