i followed your advice, but same issue.
the problem is always the line inside writeFlashValue():
var obj = swfobject.getObjectById("flashCookie");
when calling writeFlashValue() through $document.ready() I get a wrong
object back, when calling through window.onload I get a proper
callback.
//SAMPLE CODE WITH EXTRACTED STUFF:
var flashvars = {};
var params = {allowscriptaccess:"always",bgcolor:"#dddddd"};
var attributes = {};
swfobject.embedSWF("http://urlToFlashCookie.swf", "flashCookie", "0",
"0", "8",null,flashvars,params,attributes);
$(document).ready(function() {
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");
}
On 21 Jan., 12:10, Bobby <[email protected]> wrote:
> Just start by moving your SWFObject definitions and embed outside the $
> (document).ready(function() { } block. SWFObject has a built-in
> domload itself and already does this for you.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---