ouyang789987 / swfobject

Automatically exported from code.google.com/p/swfobject
0 stars 0 forks source link

Flash SWFs not displaying in Firefox 3.5.5 (Mac or PC) but work in Safari and IE. #407

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

The link:  http://odxcreative.com/apex/search-results.php

1. Standard installation of SWFObject 2.2.
2. View the page in Firefox.  

What is the expected output? What do you see instead?
Content should be a video still image and then when rolled over the video
starts to play. Instead I get a white blank (empty) space. **Only the first
2 videos (from top left) are active / using SWF Object.

What version of the product are you using? On what operating system?
SWFObject 2.2.  Mac AND PC

Please provide any additional information below.
To see how it should work, view the link in Safari or IE.

Original issue reported on code.google.com by JasonHam...@gmail.com on 23 Nov 2009 at 11:43

GoogleCodeExporter commented 9 years ago
Found a "partial" fix.  It will work in Firefox if you add the following into 
the
Head with the other SWFObject embed code:

swfobject.addLoadEvent(forceRedraw);
function forceRedraw() {
document.getElementById("id_of_flash_div").style.display = "block";

The SWFs don't load as cleanly in Firefox because of this but at least they 
load. 
There must be a better solution out there.

Original comment by JasonHam...@gmail.com on 4 Dec 2009 at 10:28

GoogleCodeExporter commented 9 years ago
I think this is a duplicate of issue 327

Original comment by smiro...@gmail.com on 11 Dec 2009 at 6:49

GoogleCodeExporter commented 9 years ago
This is no longer an issue with Firefox 3.6. I will close this thread. Please 
re-post if you're still encountering issues.

Original comment by platelu...@gmail.com on 7 Nov 2010 at 8:27

GoogleCodeExporter commented 9 years ago
Thank you, comment #1. This helped me. Even after upgrading Firefox from 3.5.x 
to 3.6.x I was still experiencing this issue: video wouldn't appear in Firefox 
3.5.x/3.6.x . I added your code along with adding 
"swfobject.switchOffAutoHideShow()" AND removing "wmode". I don't know which 
combination of the three worked and I don't have any time to verify, being on 
the clock and all.

Original comment by uhl...@gmail.com on 19 Jul 2011 at 5:33

GoogleCodeExporter commented 9 years ago
When you call registerObject the swf object will will be hidden. The flash will 
be displayed properly if replace this string to "setVisibility(objectIdStr, 
true);".

------------
registerObject: function(objectIdStr, swfVersionStr, xiSwfUrlStr, callbackFn) {
    if (ua.w3 && objectIdStr && swfVersionStr) {
        var regObj = {};
        regObj.id = objectIdStr;
        regObj.swfVersion = swfVersionStr;
        regObj.expressInstall = xiSwfUrlStr;
        regObj.callbackFn = callbackFn;
        regObjArr[regObjArr.length] = regObj;
        setVisibility(objectIdStr, false);           // !!! Error? 
    }
    else if (callbackFn) {
        callbackFn({success:false, id:objectIdStr});
    }
},

Original comment by LastDragon.ru@gmail.com on 20 Mar 2012 at 3:18