thuansaritasa / swfobject

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

swfobject 2.2 fails on Firefox 3.5 beta #327

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Upgraded the my working 2.1 swfobject to 2.2.
2. swfobject_generator_1_2_html created the same code as used with the 2.1
release.
3. Drew the page in Firefox 3.5 beta.  Mozilla/5.0 (Windows; U; Windows NT
6.0; en-US; rv:1.9.1) Gecko/20090615

What is the expected output? What do you see instead?

Expected to see same exact flash output as in 2.1.  Instead saw the flash
show up very briefly then go blank.  The working 2.1 version is found on
the http://jobbank.com front page.

When I look at the 2.2 output on IE 8.06, it looks fine.  When I back off
the same exact code back to the 2.1 version it also looks fine in the
FireFox 3.5 beta.

What version of the product are you using? On what operating system?
2.2 on Windows Vista.

Please provide any additional information below.

Original issue reported on code.google.com by jeich...@gmail.com on 19 Jun 2009 at 1:20

GoogleCodeExporter commented 9 years ago
SWFObject 2.2 works fine in Firefox 3.5.

What do you if you look at the test suite:
http://code.google.com/p/swfobject/wiki/test_suite

In any case you should move your SWFObject script blocks to the head of your 
HTML
file, and if this is not possible, move it to a point before where your object
element is inserted.

Original comment by bobbyvandersluis on 19 Jun 2009 at 7:33

GoogleCodeExporter commented 9 years ago
Will look at what you suggest, but if I just change my code from 2.1 in the 
code you
were looking at to 2.2, it fails.   Perhaps this is because of location, but it
didn't used to fail.

Thank you for your help and ideas on moving the code above.

Original comment by jeich...@gmail.com on 19 Jun 2009 at 8:59

GoogleCodeExporter commented 9 years ago
I just placed the line below above the Flash code.

<script type="text/javascript"
src="http://ajax.googleapis.com/ajax/libs/swfobject/2.1/swfobject.js"></script>

As before, It worked for this 2.1 swfobject version.  When I just changed the 
number
2.1 to 2.2 above, it failed.  Again this only occurs in FireFox 3.5 version 
shown above.

To just test this in a different way and environment, I just did the single 
digit 2.1
to 2.2 change in production's http://jobbank.com and it failed exactly the same 
way.

Sorry for the trouble.  We can just stay on 2.1.  There are no JavaScript or 
other
errors shown.

Original comment by jeich...@gmail.com on 19 Jun 2009 at 11:52

GoogleCodeExporter commented 9 years ago
And you the Flash moovies in the 2.2 test suite, are they displayed correctly?

Original comment by bobbyvandersluis on 20 Jun 2009 at 8:47

GoogleCodeExporter commented 9 years ago
It seems all of the test suit items may have run successfully.  I was not sure 
on one
of them, as I got the following message when a first element drew:

e.success = false
e.id = myId1
e.ref = undefined

at this link: 
http://www.bobbyvandersluis.com/swfobject/testsuite_2_2/test_multiple2.html

When I clicked OK, the next elements seemed to draw correctly.  This same 
message,
however, also appeared in the most recently patched IE.

Original comment by jeich...@gmail.com on 20 Jun 2009 at 3:42

GoogleCodeExporter commented 9 years ago
RE: I got the following message when a first element drew

That's correct, because Flash 11 hasn't been released yet.

I think that in your web page your Flash is drawn correctly, however it's a CSS
redrawing issue in Firefox. In SWFObject 2.2 you can turn the default show/hide 
off:

swfobject.switchOffAutoHideShow()

Disable SWFObject's default show/hide behavior (SWFObject 2.2+). 

Ensure to call swfobject.switchOffAutoHideShow() after you have included the
SWFObject library, but before any swfobject.registerObject() or 
swfobject.embedSWF()
calls, like ( http://code.google.com/p/swfobject/wiki/api ):

<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
swfobject.switchOffAutoHideShow();
swfobject.registerObject("myId", "9.0.0", "expressInstall.swf");
</script>

If it then renders correctly, it's probably a Firefox redraw issue.

Also, if you have Firebug or the DOM inspector installed, you could check how 
the DOM
elements and dynamic styles are finally rendered. What's the object blurb look 
like
in here?

Original comment by bobbyvandersluis on 22 Jun 2009 at 8:46

GoogleCodeExporter commented 9 years ago

Original comment by bobbyvandersluis on 23 Jun 2009 at 9:56

GoogleCodeExporter commented 9 years ago
I experienced this same issue, adding switchOffAutoHideShow(); fixed the 
problem.

This is an issue with the -release- build of Firefox 3.5. Looks like SWFObject 
is gonna need another update...

Original comment by alheur...@gmail.com on 6 Jul 2009 at 9:56

GoogleCodeExporter commented 9 years ago
Well, it's a Firefox rendering issue to be precise and it sometimes occurs; it 
really
depends on the specific contents of your Web page. We will investigate if we can
force Firefox to redraw to workaround this.

Original comment by bobbyvandersluis on 7 Jul 2009 at 2:18

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago

Original comment by ya_ku_...@hotmail.com on 22 Jul 2009 at 1:01

Attachments:

GoogleCodeExporter commented 9 years ago
Just an FYI, I am experiencing this issue with 2.2 and FF 3.0.7

and adding swfobject.switchOffAutoHideShow(); definitely fixed my issues in FF.

Original comment by citznf...@gmail.com on 22 Jul 2009 at 8:36

GoogleCodeExporter commented 9 years ago
Just as an aside, we've been discussing this issue in SWFObject forums; one 
thing
that I noticed during my tests is that using the switchOffAutoHideShow() method 
is
not necessary if all the SWFObject code is in the head of the document.  This 
implies
that there might be some rendering/race condition that can be prevented by 
wrapping
the SWFObject calls in another type of domready event.  But pushing code that 
didn't
work for FF3.5 into the head definitely cures the issue (at least for me)

Original comment by vep....@gmail.com on 22 Jul 2009 at 9:05

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
We were also getting this 2.2 problem with FF 3.0.6 and FF on OSX - with the 
script 
link in the body, even before the content, nothing rendered. Needed 
AutoHideShow, so 
went back to 2.1 and now works fine.

Original comment by andfina...@gmail.com on 31 Jul 2009 at 12:25

GoogleCodeExporter commented 9 years ago
Thank you,bobbyvandersluis!I had solved this troubled problem with your help.

Original comment by cosmos53076 on 3 Sep 2009 at 9:56

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I am seeing errors in FireFox 3.5.2.

Firebug is showing this error:
Error calling method on NPObject!
[Break on this error] var swfobject=function(){var
D="undefine...lay="block"}}if(E){E(B)}}a=false}}}}();\n

Seeing this same error with the test documents provided in the download.

Original comment by matt.ml...@gmail.com on 3 Sep 2009 at 6:03

GoogleCodeExporter commented 9 years ago
I had the same problem in both Safari and Firefox. 

I loaded the swfobject.js file dynamically using ajax, (after pageload). When 
the .js file is loaded I activate SWF 
object (registerObject).

Without swfobject.switchOffAutoHideShow() I see nothing (or a short flash of 
content). Adding 
swfobject.switchOffAutoHideShow() before registerObject fixed  the problem.

Since dynamic loading of javascript libraries is quite common it would be nice 
to have swfobject working in 
these kinds of contexts.

Original comment by alexande...@gtempaccount.com on 23 Sep 2009 at 3:28

GoogleCodeExporter commented 9 years ago
I've been having problems with FireFox 3. Whenever I choose the width and 
height to
be 100% it simply doesn't display. It works fine in Safari.

Original comment by walter.t...@gmail.com on 2 Oct 2009 at 4:54

GoogleCodeExporter commented 9 years ago
I've also notice in my testing that the client callback function is never 
invoked 
when using static publishing on Firefox 3.5. Dynamic publishing seems to work 
just 
fine though. So for my intents, swfobject.switchOffAutoHideShow() fixes half of 
the 
issue, is there something in the API that can resolve the client callback issue?

Thanks, Bobby!

Original comment by grant.ha...@gmail.com on 6 Oct 2009 at 3:27

GoogleCodeExporter commented 9 years ago
@#22 - Read FAQ#1 and use the mailing list for authoring questions

Original comment by aran.rhee@gmail.com on 11 Oct 2009 at 11:06

GoogleCodeExporter commented 9 years ago
Hi, i have a problem with swfobject. Since yesterday all the sites that use 
version
2.2 are not showing swf's anymore on firefox for mac os x. Can you give me hint 
how
to solve this? Thank you.

Original comment by mariusdr...@gmail.com on 14 Oct 2009 at 5:50

GoogleCodeExporter commented 9 years ago
I'm also having this problem. Only happens on Firefox 3.5 with swfObject 2. Only
started happening recently. Very annoying. Can't find a solution anywhere.

Original comment by davidhe...@gmail.com on 14 Oct 2009 at 11:19

GoogleCodeExporter commented 9 years ago
I have the same problem, I cannot see any Flash when I use Static or Dynamic
Plublishing using the SWFObject 2 AIR Generator.

I tried adding the swfobject.switchOffAutoHideShow() code but it did not work.

The strange thing is that I see the Flash fine when I test locally but only 
don't see
it when its online. Any ideas?

I'm using Firefox 3.5.3 Mac

Original comment by abhmarti...@gmail.com on 14 Oct 2009 at 12:54

GoogleCodeExporter commented 9 years ago
@all - please using the mailing list for authoring questions. Anything expect 
for 
actual bug submissions will be ignored (or marked as invalid) here.

Original comment by aran.rhee@gmail.com on 15 Oct 2009 at 1:09

GoogleCodeExporter commented 9 years ago
I have the same issue than #25, #26, #27 :
since two days, all the sites that use version 2.2 are not showing swf's 
anymore on
firefox for windows.

Original comment by romain.l...@gmail.com on 15 Oct 2009 at 4:00

GoogleCodeExporter commented 9 years ago
If anyone's sites have stopped working recently, it is due to a Flash player 
upgrade on 
your own machine (most likely a corruption of the flash player during the 
upgrade 
process). It has nothing to do with SWFObject as the code has not changed!

Original comment by aran.rhee@gmail.com on 15 Oct 2009 at 11:44

GoogleCodeExporter commented 9 years ago
I have the same probleme :(

Original comment by choussam...@gmail.com on 29 Oct 2009 at 10:40

GoogleCodeExporter commented 9 years ago
i am on firefox 3.5.4 and the "workaround" does not work for me at all.  it 
works
fine in safari, but not firefox.  i am on a MAC also, not sure if that matter.  
my
flex generated code (while ugly and ridiculous in length) work fine... i was 
really
hoping to get away from that :(

Original comment by ajsi...@gmail.com on 4 Nov 2009 at 8:50

GoogleCodeExporter commented 9 years ago
I have found that Firefox does not like it if you use percentage height or 
width in
the swfobject.embedSWF() call.

This works:
swfobject.embedSWF( "movie.swf", "container", "200", "200", "9.0.0");

While this doesn't:
swfobject.embedSWF( "movie.swf", "container", "100%", "100%", "9.0.0");

Original comment by adam.alb...@gmail.com on 17 Nov 2009 at 8:07

GoogleCodeExporter commented 9 years ago
@#33 - read the FAQ page entry #1 - reading the documentation before posting a 
"bug" 
report is really a good idea.

Original comment by aran.rhee@gmail.com on 18 Nov 2009 at 11:43

GoogleCodeExporter commented 9 years ago
This may be relevant. Or maybe it's a new bug. Please let me know if you'd like 
me to
post it as such.

I found that when creating a simple TextField in a SWF, it would sometimes 
resize
itself to 100 x 100 (the default size of a textfield) after I refreshed the 
page. (It
looked fine on initial load.) This was occurring in FF both on mac and windows, 
as
well as in IE 8.

When I removed stage.stageWidth and stage.stageHeight (I had been setting the 
size of
the textfield relative to those two) and instead designated pixels, the problem 
went
away. 

Original comment by wol...@gmail.com on 11 Dec 2009 at 10:48

GoogleCodeExporter commented 9 years ago
Having the same problems as everyone else, it appears, and 
swfobject.switchOffAutoHideShow() does not work.  
There's just no effect at all.  Using Firebug, it appears that the object 
exists -- replacement is happening 
correctly -- but is 0 pixels wide, 16 pixels tall.

Ran the test at 
http://www.bobbyvandersluis.com/swfobject/testsuite_2_2/test_dynamic2.html, 
which produces 
correct output in Safari, but in Firefox it calls the callback (success=true) 
and produces no visible output.

This is Mac OS X, 10.6.2, Firefox 3.5.5, SWFObject 2.2.

Original comment by zet...@gmail.com on 14 Dec 2009 at 4:37

GoogleCodeExporter commented 9 years ago
Fixed it. The Google generator adds a generic div around the objects. I added 
an ID
and gave it a width and height of 100% and also defined the html, body with the 
same
width and height of 100%. Now it shows up in Firefox on Mac.

Here is the code, ALL of it:

<!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" lang="en" xml:lang="en">
    <head>
        <title>SWFObject 2 static publishing example page</title>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
        <script type="text/javascript" src="js/swfobject.js"></script>
        <script type="text/javascript">
        swfobject.registerObject("myId", "10.0.2", "js/expressInstall.swf");
        </script>
        <style type="text/css" media="screen">
            html, body {
                background: #fdba13;
                border: 0;
                height: 100%;
                margin: 0;
                padding: 0;
                width: 100%;
            }
            #wrapper {
                background: none;
                border: 0;
                height: 100%;
                margin: 0;
                padding: 0;
                width: 100%;
            }
        </style>
    </head>
    <body>
        <div id="wrapper">  
            <object id="myId" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
width="100%" height="100%" align="top">
                <param name="movie" value="mysupercoolflashvideothingy.swf" />
                <param name="wmode" value="transparent" />
                <param name="scale" value="noscale" />
                <!--[if !IE]>-->
                <object type="application/x-shockwave-flash"
data="mysupercoolflashvideothingy.swf" width="100%" height="100%" align="top">
                    <param name="wmode" value="transparent" />
                    <param name="scale" value="noscale" />
                <!--<![endif]-->
                <div>
                    <h1>Alternative content</h1>
                    <p><a href="http://www.adobe.com/go/getflashplayer"><img
src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif"
alt="Get Adobe Flash player" /></a></p>
                </div>
                <!--[if !IE]>-->
                </object>
                <!--<![endif]-->
            </object>
        </div>
    </body>
</html>

Hope this helps.

Original comment by mitch.re...@gmail.com on 6 Jan 2010 at 6:55

GoogleCodeExporter commented 9 years ago
I had the same problem: with FF 3.5 and swfobject 2.1 it worked, but with 2.2 I
didn't see anything. My solution is: wrap the call to swfobject.embedSWF like 
this:

swfobject.addLoadEvent(function(){swfobject.embedSWF(...);});

Original comment by gavri...@gmail.com on 11 Feb 2010 at 2:05

GoogleCodeExporter commented 9 years ago
I was having this problem also, in Windows XP on FF 3.5.7 (and one earlier) and 
FP
10.0.45.2 (and the version before). I fixed it by swf-embedding from the 
body-onload. 

But since i was the only guy at the office experiencing this issue (on the same
configuration as my colleagues) i guessed it was a specific setting of my 
machine.
(we couldnt reproduce this on their machines so we didn't want to push the fix 
to our
codebase just yet).

One of the things i tried was disabling all my Add-Ons (standard stuff like 
Firebug,
Webdevelopper, Persona's and some other stuff.. and the swfobject/flash worked
perfectly! So i started enabling them again, one at a time until it broke again 
so i
could isolate the offending addon.

The culprit in my case was a screenshot Add-On (that seemed to interfere with 
the way
FireFox renders the page). Now i have all addons enabled again, except both
screenshot utilities (Screengrabber and another).

Im not sure if this is a FF or Addon bug, but maybe it saves you guys 
headaches. 

Original comment by bartvand...@gmail.com on 12 Feb 2010 at 12:15

GoogleCodeExporter commented 9 years ago
Hey! Same issue with swfobject 2.2 on Firefox 3.5.8 on Ubuntu.

I solved as comment #39, by removing the Screengrab plugin (btw, the version of
Screengrab I had installed was 0.9.62).

Original comment by amnio...@gmail.com on 23 Feb 2010 at 7:36

GoogleCodeExporter commented 9 years ago
#37 saved my life. 

Tried all the previous posts´suggestions first.

Thanks.

Original comment by joenweid...@gmail.com on 31 Mar 2010 at 2:50

GoogleCodeExporter commented 9 years ago
@41 - This is covered in the FAQ #1. http://code.google.com/p/swfobject/wiki/faq

Original comment by aran.rhee@gmail.com on 31 Mar 2010 at 10:57

GoogleCodeExporter commented 9 years ago
#37 Thanks a lot! 

Original comment by ariver...@gmail.com on 23 Apr 2010 at 6:39

GoogleCodeExporter commented 9 years ago
#39, I started disabling some add-ons too, and in my case (firefox 3.5.9 at 
Ubuntu
9.10), disabling "read it later 2.0.6" solved the problem.

Original comment by david....@gmail.com on 2 Jun 2010 at 5:37

GoogleCodeExporter commented 9 years ago
Flash Pro CS5, publish swf seems to fix the problem. Here is the code generated.

<!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" lang="en" xml:lang="en">
    <head>
        <title>Florida Green Builders, the finest contractor in Orlando, Winterpark, and central Florida.</title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <script type="text/javascript" src="js/swfobject.js"></script>
        <script type="text/javascript">
            <!-- Adobe recommends that developers use SWFObject2 for Flash Player detection. -->
            <!-- For more information see the SWFObject page at Google code (http://code.google.com/p/swfobject/). -->
            <!-- Information is also available on the Adobe Developer Connection Under Detecting Flash Player versions and embedding SWF files with SWFObject 2" -->
            <!-- Set to minimum required Flash Player version or 0 for no version detection -->
            var swfVersionStr = "9.0.124";
            <!-- xiSwfUrlStr can be used to define an express installer SWF. -->
            var xiSwfUrlStr = "js/expressInstall.swf";
            var flashvars = {};
            var params = {};
            params.quality = "high";
            params.bgcolor = "#333333";
            params.play = "true";
            params.loop = "true";
            params.wmode = "window";
            params.scale = "showall";
            params.menu = "true";
            params.devicefont = "false";
            params.salign = "";
            params.allowscriptaccess = "sameDomain";
            params.allowFullScreen = "true";
            var attributes = {};
            attributes.id = "index";
            attributes.name = "index";
            attributes.align = "middle";
            swfobject.createCSS("html", "height:100%; background-color: #333333;");
            swfobject.createCSS("body", "margin:0; padding:0; overflow:hidden; height:100%;");
            swfobject.embedSWF(
                "index.swf", "flashContent",
                "100%", "100%",
                swfVersionStr, xiSwfUrlStr,
                flashvars, params, attributes);
        </script>
    </head>
    <body>
        <!-- SWFObject's dynamic embed method replaces this alternative HTML content for Flash content when enough JavaScript and Flash plug-in support is available. -->
        <div id="flashContent">
            <a href="http://www.adobe.com/go/getflash">
                <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
            </a>
            <p>This page requires Flash Player version 9.0.124 or higher.</p>
        </div>
    </body>
</html>

Original comment by rwjohnso...@bellsouth.net on 25 Jun 2010 at 7:21

GoogleCodeExporter commented 9 years ago
Issue 415 has been merged into this issue.

Original comment by platelu...@gmail.com on 8 Nov 2010 at 6:07

GoogleCodeExporter commented 9 years ago
i love it

Original comment by jv...@Gmail.co.uk on 28 Nov 2010 at 12:08

GoogleCodeExporter commented 9 years ago
Diziler http://www.turkdizi.tv/ http://www.turkdizi.tv/kolej-gunlugu/ 
http://www.turkdizi.tv/duz-adam/ http://www.turkdizi.tv/yeniden-basla/ 
http://www.turkdizi.tv/karakol/ http://www.turkdizi.tv/basrolde-ask/

Original comment by xdag...@gmail.com on 21 Apr 2011 at 11:03

GoogleCodeExporter commented 9 years ago
Also fails in Firefox 4,  comment 45 doesn't work on 4 either.

Original comment by son...@gmail.com on 13 May 2011 at 9:22

GoogleCodeExporter commented 9 years ago
This thread has become unintelligible, and seems to be about any 
Firefox-related problem.

Closing this thread and focusing on other submissions.

Original comment by platelu...@gmail.com on 21 May 2011 at 6:21