swfobject does not work on Firefox but works for all other browser

1,687 views
Skip to first unread message

Dave Sniper

unread,
Mar 28, 2010, 7:02:26 AM3/28/10
to SWFObject
Hi everyone,

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>

Sam Sherlock

unread,
Mar 28, 2010, 10:08:04 AM3/28/10
to swfo...@googlegroups.com
swfobject.embedSWF(loaderUrl, "flashEditor", "100%", "100%","9.0.115", flashvars, params);

you were passing the loadUrl twice.  I changed that - which means that flashvar object and params get passed correctly, your not using attribs 

- S

Dave Sniper

unread,
Mar 28, 2010, 11:43:44 AM3/28/10
to SWFObject
Hi Sam,

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


Sam Sherlock

unread,
Mar 28, 2010, 11:51:09 AM3/28/10
to swfo...@googlegroups.com
whooopsie


I missed the expressInstall arg after the version arg

try:
swfobject.embedSWF(loaderUrl, "flashEditor", "100%", "100%","9.0.115", false, flashvars, params);


- S






--
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.


Hung Bui

unread,
Mar 28, 2010, 11:58:27 AM3/28/10
to swfo...@googlegroups.com

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>

 

 

 

Hung Bui

unread,
Mar 28, 2010, 11:59:54 AM3/28/10
to swfo...@googlegroups.com

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

Sam Sherlock

unread,
Mar 28, 2010, 4:16:48 PM3/28/10
to swfo...@googlegroups.com

Hung Bui

unread,
Mar 28, 2010, 4:59:58 PM3/28/10
to swfo...@googlegroups.com

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

Reply all
Reply to author
Forward
0 new messages