Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

White background turned black after publishing

Status
Not open for further replies.

Inferno3D

Technical User
May 25, 2001
8
US
this URL is a test area, its not openly on the web.


We are working out the bugs. The opening sequence should be white with a series of animated boxes that move in and materialize in a layered fashion. Instead its black until the end of that segment. the animation looks perfect on my computer (ain't that always the case)

any ideas?

tkimball@tampabay.rr.com
 
the only thing I can think of, and I'm about the furthest from being an expert in this forum, is there any chance that the background colour is actually see-through and the <body> tag for your html is set for a black background?

good luck to ya,
Adam
 
Adam's right:

line 17:
<param name=&quot;bgcolor&quot; value=&quot;#000000&quot;>

dave
dave@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^​
 
Nah, I don't think its that. because the background is red. I think my 1st posting was misleading. that link is active. check it out. :)
 
ok inferno,

I just checked the following code (cut'n'paste into notepad, you know the score):

<html>

<head>
<meta http-equiv=&quot;content-type&quot; content=&quot;text/html;charset=iso-8859-1&quot;>
<meta name=&quot;generator&quot; content=&quot;Adobe GoLive 4&quot;>
<title>SOLAH</title>
</head>


<body bgcolor=&quot;#CC0000&quot; background=&quot;background.gif&quot;>
<center>
<!-- Aftershock soon.swf 3=100 4=100 2=1 -->
<!-- EndAftershock soon.swf -->
<object classid=&quot;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&quot; codebase=&quot; id=&quot;soon&quot; height=&quot;600&quot; width=&quot;800&quot;>
<param name=&quot;movie&quot; value=&quot; <param name=&quot;quality&quot; value=&quot;best&quot;>
<param name=&quot;bgcolor&quot; value=&quot;#ffffff&quot;>
<param name=&quot;play&quot; value=&quot;true&quot;>
<script language=&quot;JavaScript&quot;>

<!--
var ShockMode = 0;
if (navigator.mimeTypes && navigator.mimeTypes[&quot;application/x-shockwave-flash&quot;] && navigator.mimeTypes[&quot;application/x-shockwave-flash&quot;].enabledPlugin) {
if (navigator.plugins && navigator.plugins[&quot;Shockwave Flash&quot;])
ShockMode = 1;
}
if ( ShockMode ) {
document.write('<EMBED name=navmovie SRC=&quot; document.write(' swLiveConnect=FALSE HEIGHT=600 WIDTH=800');
document.write(' QUALITY=best play=true');
document.write(' TYPE=&quot;application/x-shockwave-flash&quot; PLUGINSPAGE=&quot; document.write('</EMBED>');
} else if (!(navigator.appName && navigator.appName.indexOf(&quot;Netscape&quot;)>=0 && navigator.appVersion.indexOf(&quot;2.&quot;)>=0)){
document.write('<center><IMG SRC=&quot; WIDTH=800 HEIGHT=600 BORDER=&quot;0&quot;></center>');
}
//-->

</script>
<noembed>
<center>
<img src=&quot; width=&quot;550&quot; height=&quot;400&quot; border=&quot;0&quot;></center>
</noembed>

<noscript>
<center>
<center>
<img src=&quot; width=&quot;550&quot; height=&quot;400&quot; border=&quot;0&quot;></center>
</noscript>
</center></object>
</center></body>

</html>

This makes the flash background white and the HTML background red. The following makes all background white until you bring in the red alpha-tweened mc-background:

<html>

<head>
<meta http-equiv=&quot;content-type&quot; content=&quot;text/html;charset=iso-8859-1&quot;>
<meta name=&quot;generator&quot; content=&quot;Adobe GoLive 4&quot;>
<title>SOLAH</title>
</head>


<body bgcolor=&quot;#ffffff&quot; background=&quot;background.gif&quot;>
<center>
<!-- Aftershock soon.swf 3=100 4=100 2=1 -->
<!-- EndAftershock soon.swf -->
<object classid=&quot;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&quot; codebase=&quot; id=&quot;soon&quot; height=&quot;600&quot; width=&quot;800&quot;>
<param name=&quot;movie&quot; value=&quot; <param name=&quot;quality&quot; value=&quot;best&quot;>
<param name=&quot;bgcolor&quot; value=&quot;#ffffff&quot;>
<param name=&quot;play&quot; value=&quot;true&quot;>
<script language=&quot;JavaScript&quot;>

<!--
var ShockMode = 0;
if (navigator.mimeTypes && navigator.mimeTypes[&quot;application/x-shockwave-flash&quot;] && navigator.mimeTypes[&quot;application/x-shockwave-flash&quot;].enabledPlugin) {
if (navigator.plugins && navigator.plugins[&quot;Shockwave Flash&quot;])
ShockMode = 1;
}
if ( ShockMode ) {
document.write('<EMBED name=navmovie SRC=&quot; document.write(' swLiveConnect=FALSE HEIGHT=600 WIDTH=800');
document.write(' QUALITY=best play=true');
document.write(' TYPE=&quot;application/x-shockwave-flash&quot; PLUGINSPAGE=&quot; document.write('</EMBED>');
} else if (!(navigator.appName && navigator.appName.indexOf(&quot;Netscape&quot;)>=0 && navigator.appVersion.indexOf(&quot;2.&quot;)>=0)){
document.write('<center><IMG SRC=&quot; WIDTH=800 HEIGHT=600 BORDER=&quot;0&quot;></center>');
}
//-->

</script>
<noembed>
<center>
<img src=&quot; width=&quot;550&quot; height=&quot;400&quot; border=&quot;0&quot;></center>
</noembed>

<noscript>
<center>
<center>
<img src=&quot; width=&quot;550&quot; height=&quot;400&quot; border=&quot;0&quot;></center>
</noscript>
</center></object>
</center></body>

</html>


Is this still being confused?

dave
dave@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^​
 
better use the following, TGML added in semi-colns in the above:

red HTML BG, White flash BG:
Code:
<html>

	<head>
		<meta http-equiv=&quot;content-type&quot; content=&quot;text/html;charset=iso-8859-1&quot;>
		<meta name=&quot;generator&quot; content=&quot;Adobe GoLive 4&quot;>
		<title>SOLAH</title>
	</head>

	
<body bgcolor=&quot;#cc0000&quot; background=&quot;background.gif&quot;>
<center>
			<!-- Aftershock soon.swf 3=100 4=100 2=1 -->
			<!-- EndAftershock soon.swf -->
			<object classid=&quot;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&quot; codebase=&quot;[URL unfurl="true"]http://active.macromedia.com/flash2/cabs/swflash.cab#version=3,0,0,0&quot;[/URL] id=&quot;soon&quot; height=&quot;600&quot; width=&quot;800&quot;>
				<param name=&quot;movie&quot; value=&quot;[URL unfurl="true"]http://www.solah.net/flashtest/home.swf&quot;>[/URL]
				<param name=&quot;quality&quot; value=&quot;best&quot;>
				<param name=&quot;bgcolor&quot; value=&quot;#ffffff&quot;>
				<param name=&quot;play&quot; value=&quot;true&quot;>
				<script language=&quot;JavaScript&quot;>

<!--
var ShockMode = 0;
if (navigator.mimeTypes && navigator.mimeTypes[&quot;application/x-shockwave-flash&quot;] && navigator.mimeTypes[&quot;application/x-shockwave-flash&quot;].enabledPlugin) {
        if (navigator.plugins && navigator.plugins[&quot;Shockwave Flash&quot;])
                ShockMode = 1;
}
if ( ShockMode ) {
        document.write('<EMBED name=navmovie SRC=&quot;[URL unfurl="true"]http://www.solah.net/flashtest/home.swf&quot;');[/URL]
        document.write(' swLiveConnect=FALSE HEIGHT=600 WIDTH=800');
        document.write(' QUALITY=best  play=true');
        document.write(' TYPE=&quot;application/x-shockwave-flash&quot; PLUGINSPAGE=&quot;[URL unfurl="true"]http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash&quot;>');[/URL]
        document.write('</EMBED>');
} else if (!(navigator.appName && navigator.appName.indexOf(&quot;Netscape&quot;)>=0 && navigator.appVersion.indexOf(&quot;2.&quot;)>=0)){
        document.write('<center><IMG SRC=&quot;[URL unfurl="true"]http://www.solah.net/flashtest/images/home.gif&quot;[/URL] WIDTH=800 HEIGHT=600 BORDER=&quot;0&quot;></center>');
}
//-->

</script>
				<noembed>
					<center>
						<img src=&quot;[URL unfurl="true"]http://www.solah.net/flashtest/images/splash.gif&quot;[/URL] width=&quot;550&quot; height=&quot;400&quot; border=&quot;0&quot;></center>
				</noembed>
				
				<noscript>
				<center>
					<center>
						<img src=&quot;[URL unfurl="true"]http://www.solah.net/flashtest/images/splash.gif&quot;[/URL] width=&quot;550&quot; height=&quot;400&quot; border=&quot;0&quot;></center>
					</noscript>
				</center></object>
		</center></body>

	</html>


White HTML BG, white Flash BG until you're red alpha-tweened mc:

Code:
<html>

	<head>
		<meta http-equiv=&quot;content-type&quot; content=&quot;text/html;charset=iso-8859-1&quot;>
		<meta name=&quot;generator&quot; content=&quot;Adobe GoLive 4&quot;>
		<title>SOLAH</title>
	</head>

	
<body bgcolor=&quot;#FFFFFF&quot; background=&quot;background.gif&quot;>
<center>
			<!-- Aftershock soon.swf 3=100 4=100 2=1 -->
			<!-- EndAftershock soon.swf -->
			<object classid=&quot;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&quot; codebase=&quot;[URL unfurl="true"]http://active.macromedia.com/flash2/cabs/swflash.cab#version=3,0,0,0&quot;[/URL] id=&quot;soon&quot; height=&quot;600&quot; width=&quot;800&quot;>
				<param name=&quot;movie&quot; value=&quot;[URL unfurl="true"]http://www.solah.net/flashtest/home.swf&quot;>[/URL]
				<param name=&quot;quality&quot; value=&quot;best&quot;>
				<param name=&quot;bgcolor&quot; value=&quot;#ffffff&quot;>
				<param name=&quot;play&quot; value=&quot;true&quot;>
				<script language=&quot;JavaScript&quot;>

<!--
var ShockMode = 0;
if (navigator.mimeTypes && navigator.mimeTypes[&quot;application/x-shockwave-flash&quot;] && navigator.mimeTypes[&quot;application/x-shockwave-flash&quot;].enabledPlugin) {
        if (navigator.plugins && navigator.plugins[&quot;Shockwave Flash&quot;])
                ShockMode = 1;
}
if ( ShockMode ) {
        document.write('<EMBED name=navmovie SRC=&quot;[URL unfurl="true"]http://www.solah.net/flashtest/home.swf&quot;');[/URL]
        document.write(' swLiveConnect=FALSE HEIGHT=600 WIDTH=800');
        document.write(' QUALITY=best  play=true');
        document.write(' TYPE=&quot;application/x-shockwave-flash&quot; PLUGINSPAGE=&quot;[URL unfurl="true"]http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash&quot;>');[/URL]
        document.write('</EMBED>');
} else if (!(navigator.appName && navigator.appName.indexOf(&quot;Netscape&quot;)>=0 && navigator.appVersion.indexOf(&quot;2.&quot;)>=0)){
        document.write('<center><IMG SRC=&quot;[URL unfurl="true"]http://www.solah.net/flashtest/images/home.gif&quot;[/URL] WIDTH=800 HEIGHT=600 BORDER=&quot;0&quot;></center>');
}
//-->

</script>
				<noembed>
					<center>
						<img src=&quot;[URL unfurl="true"]http://www.solah.net/flashtest/images/splash.gif&quot;[/URL] width=&quot;550&quot; height=&quot;400&quot; border=&quot;0&quot;></center>
				</noembed>
				
				<noscript>
				<center>
					<center>
						<img src=&quot;[URL unfurl="true"]http://www.solah.net/flashtest/images/splash.gif&quot;[/URL] width=&quot;550&quot; height=&quot;400&quot; border=&quot;0&quot;></center>
					</noscript>
				</center></object>
		</center></body>

	</html>

dave
dave@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^​
 
Adam, all I'm changing is the HTML BG colour in line 10, and the Flash BG colour (as you said) in line 17.

dave
dave@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^​
 
ah.....so I was on the right track....hhmm..go figure.. :) I hadn't looked at the source code, it was just a wild guess..as they say: even a blind squirrel finds an acorn sometimes. :)

Adam
 
LOL Know a lot of blind squirrels then?

Inferno? Any progress?

dave
dave@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^​
 
Also, thanks everyone for the help. you guys rock.
 
I've had this problem also. The picture, button, or graphic will look fine while in Flash, but once published, it turns red. Well, what I did to fix that was inside Flash 4 or 5, click on the object that turns red and press F8. Choose either graphic, button, or movie (whichever one applies). That should fix the problem.
 
mik: I think you're getting confused with importing objects not supported by Flash, such as an avi file, which when imported displays as a red rectangle on publishing. Nothing to do with the above.

dave
dave@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^​
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top