thuansaritasa / swfobject

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

White background flashes (visible) before Flash content loads #340

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use SWF Object to embed Flash using approved methods
2. Use the Background Color param and the white remains
3. White flash lasts longer if SWF file is larger.

Expected output would be a color matching the preferred background color. 
E.g. if I'm using black, I would be okay if the SWF Object div was filled
with black during the load time.

Using V2.

Original issue reported on code.google.com by JasonHam...@gmail.com on 7 Jul 2009 at 7:50

GoogleCodeExporter commented 9 years ago
The background color set for the Flash object will only be used when the swf 
has 
actually loaded enough to be written to the page. The color of the div / page 
will 
show until that time.

Can you please make a test page using the standard object / embed to ensure 
that it 
is specifically caused by using SWFObject?

If it is demonstrated that SWFObject is behaving differently than a standard 
embed, 
please supply a test page which can be investigated.

You might want to read : 
http://groups.google.com/group/swfobject/browse_thread/thread/a99d943d57787f84/6
062f4
be41ea7f05?hl=en&lnk=gst&q=flash+of+white#6062f4be41ea7f05

or search the list as I am sure there are threads regarding this already.

Original comment by aran.rhee@gmail.com on 8 Jul 2009 at 8:43

GoogleCodeExporter commented 9 years ago
This issue is not SWFObject related.

Original comment by bobbyvandersluis on 9 Jul 2009 at 4:12

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I have a very clean installation of SWFObject on the pages below.  In IE 
particularly,
you'll see a Flash of white where I've embedded Flash using SWFObject.  I'm 
using Flash for the
entire body of the index.html page and the main menu on the top right of the 
resources.html page. The 
container DIVs, the Flash file (FLA/SWF) itself, and the SWFObject all share 
the background code #333333, and 
the body is #000 but the "blink" before it loads is definitely white and 
happens every time you re-open the page.  
It is more prevalent with a cleared cache.  Both pages are 100% XHTML compliant.
links:  http://flat6concepts.com/rose_chang/beta/ and 
http://flat6concepts.com/rose_chang/beta/resources.html

Original comment by JasonHam...@gmail.com on 22 Jul 2009 at 5:49

GoogleCodeExporter commented 9 years ago
Hi Guys, any solution for this syndrome yet? I can only say that in my case it
flashes white with swfobject and does not with Flash published HTML file which I
don't want to use.

Original comment by mxtrack....@gmail.com on 17 Sep 2009 at 3:00

GoogleCodeExporter commented 9 years ago
<body bgcolor="black">
<object width="385" height="187" bgcolor="#000000">
<param name="movie" value="tpban.swf">
<param name="bgcolor" value="#000000">
<embed src="tpban.swf" width="385" height="187" bgcolor="#000000">
</embed>
</object>
</body>

Original comment by steve.va...@gmail.com on 2 Dec 2009 at 5:24

GoogleCodeExporter commented 9 years ago
I'm having this issue as well. I'm comment out the JS include for swfobject 
2.0, and
the white flash does not occur, with the swobject JS it does occur. This is
definitely related to the js file.

Original comment by brandon%...@gtempaccount.com on 17 Apr 2010 at 6:38

GoogleCodeExporter commented 9 years ago
<param name="wmode" value="transparent">

Original comment by stefanub...@gmail.com on 20 Apr 2010 at 2:01

GoogleCodeExporter commented 9 years ago
Using SWFObject - dynamic publishing:

var flashparams = {
    wmode: "transparent"
};

swfobject.embedSWF("movie.swf", "width", "height", flashversion, 
flashexpressinstallswfurl, flashvars, 
flashparams, flashattributes);

Original comment by stefanub...@gmail.com on 20 Apr 2010 at 2:07

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I have the same issue. The whole page "flashes" white and then it displays the 
content. It only happens when attaching the JS file. (v.2.2)

Original comment by qbanbo...@gmail.com on 14 Jan 2011 at 6:16

GoogleCodeExporter commented 9 years ago
So if I comment out this line (see below) on the swfobject.js file it works 
fine.

    isDomLoaded = true;
        var dl = domLoadFnArr.length;
        for (var i = 0; i < dl; i++) {
-----> //domLoadFnArr[i]();            
}

There's got to be something going on with the code... what exactly is it doing?

Original comment by qbanbo...@gmail.com on 14 Jan 2011 at 6:45

GoogleCodeExporter commented 9 years ago
Same issue on my site. The whole page flashes, even if there is no flash on the 
site but swfobject.

Original comment by berner.a...@gmail.com on 25 Jan 2011 at 4:04

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I also spent ages trying to figure out what was the problem here. Finally I 
started to exclude blocks from my HTML page, one by one, and figured out the 
issue is with SWFobject. 
I found this page and neither answer helps me resolve my blonk issue.

After some try-n-error attempts, I figured out the solution for this issue:

setTimeout ! We need to delay initializing the flash for some half a second. 
* IT WORKS only for SWFobject 2.1, not working for 2.2 ! *

Example:

<div id=myplayer style="display: none;"></div>
<script type="text/javascript" src="/swfobject.js"></script>
<script type="text/javascript">
  setTimeout("swfobject.embedSWF('pl.swf', 'myplayer', '1', '1', '9.0.0', 'expressInstall.swf', false,false,false);", 500);
</script>

Original comment by Serge.Da...@gmail.com on 2 May 2011 at 9:54

GoogleCodeExporter commented 9 years ago
I cannot reproduce this problem, but:
If I remember correctly, SWFObject creates a CSS rule that sets the div's 
visibility so that it is invisible.  Then after loading the SWF, the visibility 
is set to visible.  This is the only possible thing I can think of that could 
cause this problem.
There are also an assortment of browser quirks that can cause background 
flashing.

Also, what version of the browser are you testing on?

Original comment by jhiswin on 3 May 2011 at 7:17

GoogleCodeExporter commented 9 years ago
Thanks steve.va...@gmail.com, i follow your instruction. it helps me :)

Original comment by f...@launchpad.pk on 21 Feb 2012 at 6:26

GoogleCodeExporter commented 9 years ago
We are in 2012 and issue still exists, @bobbyvandersluis has be precipitated 
for closed this issue!
The problem is with swfobject!

Original comment by le1...@gmail.com on 5 Jul 2012 at 6:05

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Perfect steve.va...@gmail.com! Thanks! :)

Original comment by jordane....@gmail.com on 31 Oct 2012 at 8:19

GoogleCodeExporter commented 9 years ago
#8 stefanub...@gmail.com

Thank you! It works fine!

Original comment by sergei.r...@gmail.com on 29 Mar 2013 at 8:03

GoogleCodeExporter commented 9 years ago
I can't believe this project is not yet fixed. Is SWFObject still a viable 
option? Dose anymore work on this project anymore?

Original comment by vamapa...@gmail.com on 9 Sep 2013 at 1:15

GoogleCodeExporter commented 9 years ago
For some reason, deleting this part fixed the embed issue in IE for me:
parameters.scale = "noscale";

Original comment by vamapa...@gmail.com on 9 Sep 2013 at 1:30