Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / General Flash Topics / September 2008



Tip: Looking for answers? Try searching our database.

white box behind flash when in html

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
TalDesign - 30 Sep 2008 00:40 GMT
Hi. I've created a flash with a black background and inserted in my html also
with a black background. The problem is that when I click through the pages,
for a half second or so, the area behind the flash is white (and stands out
like a sore thumb). Any thoughts to why this might be happening and what to do
to fix it? Thanks for your help.

The site is staged at: http://tinabranan.com/home.html
David Stiller - 30 Sep 2008 01:32 GMT
TalDesign,

> Any thoughts to why this [white background color] might
> be happening and what to do to fix it?

   If you change the Stage's background color, you'll find that the HTML
document (generated by Flash) matches to suit.  The attribute you're after
is called bgcolor, which you can fiind on this page using your browser's
Search feature:

   http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_12701

   Make sure to configure that value in your <object> and <embed> tags (and
optionally in your JavaScript, if you're using JavaScript to embed your SWF.

David Stiller
Adobe Community Expert
Dev blog, http://www.quip.net/blog/
"Luck is the residue of good design."
TalDesign - 30 Sep 2008 16:53 GMT
Thanks for the suggestion David, but that still didn't work. See
http://tinabranan.com/test/home.html

I'm not sure what else to try. The client is adamant about it being black
while loading and I'm somewhere between my wits end and pulling every hair from
my head. Any other thoughts? I truly appreciate it!!
David Stiller - 30 Sep 2008 17:19 GMT
TalDesign,

> Thanks for the suggestion David, but that still didn't work. See
> http://tinabranan.com/test/home.html

   I see a bgcolor attribute inside a <table> tag, but I don't see that
attribute inside the <object> and <embed> tags.  It needs to be your
JavaScript, too.

e.g.
AC_FL_RunContent(
 'width','900',
 'height','530',
 'src','home',
 'quality','high',
 'movie','home'
 'bgcolor','#000000'  <== here
); //end AC code

   Note, I omitted two very long parameters from that snippit.  The
important part is to note that the params come in pairs, and are mirrored in
the <object> and <embed> tags:

<object [lots of attributes here] >
 <param name="movie" value="home.swf" />
 <param name="bgcolor" value="#000000" />
 ...

<embed src="home.swf" [params ...] bgcolor="#000000" />

David Stiller
Adobe Community Expert
Dev blog, http://www.quip.net/blog/
"Luck is the residue of good design."

> I'm not sure what else to try. The client is adamant about it being black
> while loading and I'm somewhere between my wits end and pulling every hair
> from
> my head. Any other thoughts? I truly appreciate it!!
TalDesign - 30 Sep 2008 15:20 GMT
Thank you very much. I'm going to try it out! I thought I'd selected the bgcolor in all places I needed but apparently not. : )

Thanks again.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.