[SWFObject] js_integration kit not working properly in FF
David Waclo
oakiedave at hotmail.com
Tue Oct 31 13:09:19 PST 2006
I've stripped the javascript down to this and still have the same problem:
the gateway occasionally doesn't work in FireFox. Works fine in Explorer.
(getWidths is the function that displays winW in the green textbox). Is it
possible that the setProxy part needs to finish before the write
Flashcontent function begins?
http://wolfsmithmedia.com/TestDave/webN2.php
<body>
<div align="center" id="flashcontent">
Flash here</div>
<script type="text/javascript">
var swf = new SWFObject("webN.swf", "jsdisplay", "2000", "116", "6.0.65",
"#ffffff");
swf.setProxy(null, 'swfobject_js_gateway.swf');
swf.write("flashcontent");
</script>
<script language="JavaScript">
var winW = 630, winH = 460;
// uses gateway to send winW to functions in the swf
function sendSwf() {
swf.call('getWidths', winW);
}
sendSwf();
</script>
<br>
<a href="javascript:void(0)" onclick="swf.call('getWidths', '20');">make
call</a>
</body>
_________________________________________________________________
Add a Yahoo! contact to Windows Live Messenger for a chance to win a free
trip!
http://www.imagine-windowslive.com/minisites/yahoo/default.aspx?locale=en-us&hmtagline
More information about the Swfobject
mailing list