ExternalInterface issue on loadup with FireFox
Posted
by Rudy
on Stack Overflow
See other posts from Stack Overflow
or by Rudy
Published on 2010-06-10T20:51:03Z
Indexed on
2010/06/10
20:52 UTC
Read the original article
Hit count: 302
Hello,
I have an issue with my ExternalInterface.
The way it is currently set up is, on the page load up, a boolean is set to true in JavaScript and then checked by ActionScript constructors (using a timer) until it is true. This marks that JavaScript is ready to get calls from AS3.
At this point, AS3 will add the callback and do some internal stuff, and at the end of the constructor I call JavaScript. So far so good. JavaScript will at this point call a function in AS3 (that was defined in the callback described above), and this is where it all messes up.
On IE this works perfectly fine. On FireFox though, it does not. When I debug it, I see that the javascript function is called but when it tries to call AS3, nothing happens. I also tried to add a timer, but for some reason the function STILL executes straight away (in IE).
What is very weird is that a second or two later, that function will work, so it seems that the Flash is not completely loaded in FireFox? But it runs to the last line of my constructor, so I would believe it's loaded.
Any idea please, I am really stuck.
Thanks a lot, Rudy
© Stack Overflow or respective owner