Sorry, I had fixed it by giving:
...
var flashvars = { };
var params = {
quality: 'high',
pluginspage: 'http://www.macromedia.com/go/getflashplayer',
play: 'true',
loop: 'true',
scale: 'Exact Fit',
wmode: 'transparent',
//wmode: 'window',
devicefont: 'false',
bgcolor: '#ffffff',
menu: 'true',
allowFullScreen: 'true',
allowScriptAccess: 'sameDomain',
salign: 't'
};
var attributes = { id: "swf_id", name: "swf_id" };
function thisFunction() {
var obj = document.getElementById("swf_id");
if (!obj) { //IE doesn't find it immidiately yah (yet another hack)
setTimeout("thisFunction()", 200);
return;
}
/* rest of the code that sets the dimensions etc with ExternalInterface
calls like obj.setDimensions(width, height); */
}
swfobject.embedSWF("myswf.swf", "swf_container", ""+ windowWidth, ""+
windowHeight, "9.0.0", "expressInstall.swf", flashvars, params, attributes);
</script>
</head>
<body><div id="swf_id">alternate content</div>
...
Hope this helps someone. Took me a while to find this.
Thanks anyway.
Tim-Hinnerk Heuer
http://www.ihostnz.com
Katharine Hepburn - "Life is hard. After all, it kills you."
2009/2/17 Aran Rhee <[email protected]>
>
> So do the existing SWFObject test suite examples using EI work for you?
>
> Dynamic:
>
> http://www.bobbyvandersluis.com/swfobject/testsuite_2_1/test_dynamic_com.htm
> l
>
> Static:
> http://www.bobbyvandersluis.com/swfobject/testsuite_2_1/test_com.html
>
>
> Aran
>
>
> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On
> Behalf Of geekdenz
> Sent: Tuesday, 17 February 2009 12:27 PM
> To: SWFObject
> Subject: cannot call ExternalInterface methods from Javascript in Internet
> Explorer 8 RC1
>
>
> Hi,
>
> This is great, but IE8 doesn't seem to work properly with the
> ExternalInterface calls. Was wondering if i do a mistake or if there
> is a workaround:
>
> obj = document.getElementById("swf_container");
>
> and
>
> obj.setSomething("asd");
>
> doesnt seem to work in IE. It returns the div container. In FF it
> works as expected. We need the external call to work in IE.
>
> also tried these
> obj = document["swfname"];
> obj = swfobject.getDocumentById("swf_container");
>
> to no avail.
>
> Please help. I'm using dynamic publishing.
>
> Thanks,
> Tim
>
>
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---