The swfobject is driving me mad. The script below works for all
browsers but not in firefox. Could anyone please help me to find out
what is happening.
Thank you very much.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>TEST</title>
<script type="text/javascript" src="http://www.videobuilder.tv/js/
swfobject.js"></script>
<script type="text/javascript">
var loaderUrl = 'http://assets.jaycut.com/flash/
ApplicationLoader.swf';
var flashvars = {};
flashvars.applicationUri = encodeURIComponent("http://
videodirect.api.jaycut.com/applets/login.xml?chain=mixer");
flashvars.loginUri = encodeURIComponent("http://
videodirect.api.jaycut.com/users/1592663/session?
api_key=b1vdOi76K&expires=1270373600&signature=a06dbb9e514bac79d88a451c166c9e2feadb307e&_method=PUT");
flashvars.localeChain = "en_US";
flashvars.noHelp = "1";
flashvars.noUpload = "1";
var params = {
wmode: "transparent"
};
var attributes = {};
swfobject.embedSWF(loaderUrl, "flashEditor", "100%", "100%",
"9.0.115", loaderUrl, flashvars, params);
</script>
</head>
<body>
<div class="applicationDv">
<div id="flashEditor"><p>Alternative content</p></div>
</div>
</body>
</html>
Thanks for your input. I have changed the code as your suggestion, but
still no luck. Now, the flash application cannot load on any
browsers.
I have been searching for a solution for few days, but can't think of
any reason why it doing it in Firefox.
Dave
--
You received this message because you are subscribed to the Google Groups "SWFObject" group.
To post to this group, send email to swfo...@googlegroups.com.
To unsubscribe from this group, send email to swfobject+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/swfobject?hl=en.
Hi Sam.. Thanks again for looking into this. Much appreciated.
I have tried it and it works on other browsers like previous version. However, it still does not work on Firefox… Very odd.
The html code is very simple.. you might be able to try out from your end.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>TEST</title>
<script type="text/javascript" src="http://www.videobuilder.tv/js/swfobject.js"></script>
<script type="text/javascript">
var loaderUrl = 'http://assets.jaycut.com/flash/ApplicationLoader.swf';
var flashvars = {};
flashvars.applicationUri = encodeURIComponent("http://videodirect.api.jaycut.com/applets/login.xml?chain=mixer");
flashvars.loginUri = encodeURIComponent("http://videodirect.api.jaycut.com/users/1592663/session?api_key=b1vdOi76K&expires=1270373600&signature=a06dbb9e514bac79d88a451c166c9e2feadb307e&_method=PUT");
flashvars.localeChain = "en_US";
flashvars.noHelp = "1";
flashvars.noUpload = "1";
var params = {
wmode: "transparent"
};
var attributes = {};
swfobject.switchOffAutoHideShow();
swfobject.embedSWF(loaderUrl, "flashEditor", "100%", "100%","9.0.115", false, flashvars, params);
</script>
</head>
<body>
<div class="applicationDv">
<div id="flashEditor"><p>Alternative content</p></div>
</div>
</body>
</html>
I can see swfobject has already activated the id “flashEditor” and replace for flash content.. but somehow firefox does not display it
I found it is very strange.
From: swfo...@googlegroups.com
[mailto:swfo...@googlegroups.com] On Behalf Of Sam Sherlock
Sent: 28 March 2010 16:51
To: swfo...@googlegroups.com
Subject: Re: [SWFObject] Re: swfobject does not work on Firefox but
works for all other browser
whooopsie
Hey Sam,
Thanks for the link. It looks like we don’t need to use 100% width and height, therefore I tried to use with fixed dimensions and it works perfectly now.
The following code we used to set our flash application to 970px for the width and 930px for the height.
swfobject.embedSWF(loaderUrl, "flashEditor", "970", "930","9.0.115", false, flashvars, params);
Cheers,
Dave