Your SWF and External Interface functionality will need some time to
initialize, so calling it directly when the DOM is loaded is too
quick.
You'd better only call it as soon as it is available, e.g.:
var obj = document.getElementById("flashCookie");
(function() {
if (obj && typeof obj.JStoASviaExternalInterface != "undefined") {
obj.JStoASviaExternalInterface();
}
else {
setTimeout(arguments.callee, 10);
}
})();
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"SWFObject" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/swfobject?hl=en
-~----------~----~----~----~------~----~------~--~---