hi,
I got problems to integrate swfobject 2.1 with jquery 1.2.6.Calling
ExternalInterface of a flash app fails.
When using window.onload callback accessing ExternalInterface works
fine, so it must be a jquery/swfobject integration problem. I read
some posts but they only mention solutions to outdated swfobject
+jquery versions.
//SAMPLE CODE:
$(document).ready(function() {
var flashvars = {};
var params = {allowscriptaccess:"always",bgcolor:"#dddddd"};
var attributes = {};
swfobject.embedSWF("http://urlToFlashCookie.swf", "flashCookie", "0",
"0", "8",null,flashvars,params,attributes);
writeFlashValue("documentReadyCall","value");
});
function writeFlashValue(key,value){
var obj = swfobject.getObjectById("flashCookie");
if (obj && typeof obj.setFlashCookieValue != "undefined") {
obj.setFlashCookieValue(key,value);
document.getElementById("myInput").value ="";
}
else alert("callback assert error");
}
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---