View Full Version : Pop-up Window
This is really a wierd problem !!!
I loaded the .swf files into the pop-up window using javascript but the background color of the .swf movie dissappear (white) ?
On the other hand, some other .swf movies works just fine.
The 2nd strange problem is the preloader in scene 1 has no bgcolor but movie in scene 2 onwards has ???
My bgcolor used is black. So what can be the problem ?
I have absolutely no idea and I am in a rush to complete the movie.
Please, thousand thanks to helpers in saving my bgcolor.
Jesse
04-23-2002, 12:03 PM
Did you load the .swf straight into the popup or did you load in an html file which embeds the SWF? You should do the later. The HTML file has a tag in it w hich defines the movie BG color.
This is great, Jesse. Now it works. As promise thanks x1000. ha ha.
:D I never know that there's a bgcolor tag in javascript. For those people facing the same problem with me. This is the solution:
<script language="Javascript">
<!--
function newpage(name){
var doc=open(null,name,menubar="no",fullscreen="no",toolbar="no", resizable="no",scrollbars="no");
doc.document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ');
doc.document.write(' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" ');
doc.document.write(' WIDTH=100% HEIGHT=100%>');
doc.document.write(' <PARAM NAME=movie VALUE="'+name+'.swf">');
doc.document.write(' <PARAM NAME=quality VALUE=high>');
doc.document.write(' <PARAM NAME=scale VALUE=exactfit>');
doc.document.write(' <PARAM NAME=bgcolor VALUE=#FFFFFF>');
doc.document.write(' <PARAM NAME=wmode VALUE=transparent>');
doc.document.write(' <EMBED src="'+name+'.swf" quality=high scale=exactfit bgcolor=#FFFFFF WIDTH=100% HEIGHT=100% TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">');
doc.document.write('</EMBED>');
doc.document.write('</OBJECT>');
}
//-->
</script>
I noticed that the transparent property also affect the bgcolor. Don't know why? I post the entire script so anyone can use it but remember to remove the words in bold.:p
Well, my codes open a new window with the flash mc embed dynamically but there are white borders around the mc.
I know that I can use margintop and marginleft to get rid the borders only if the mc is already embed inside a webpage.
So my question is how to I get rid the borders if I open a pop-up window with the above command ?
Your help is greatly appreciated.
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.