View Full Version : Transparent background for swf banners
Tobes
01-28-2008, 11:17 PM
Hi,
Is it possible for me to make the background for my banners transparent, I have a white box around my flash file at the moment.
where would I add the code wmode=transparent for swf files used with the banner plugin.
Thanks for any help
Tobes
Micha
01-29-2008, 09:13 AM
Here you can read about making your flash transparent:
http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14201&sliceId=2
Tobes
01-29-2008, 02:03 PM
Hi Micha,
Thanks for your help, I do know how to make flash with transparent backgrounds, but normally its the code where the flash is embed into html where you add the wmode=transparent.
I need the banner plugin to have transparent backgrounds, and I dont know where the embed code is.
Could you please give me a clue.
Many thanks
Micha
01-29-2008, 03:15 PM
Try Zones.class.php, but I'm really fishing in the dark here.
Tobes
01-29-2008, 03:52 PM
yeah thats its, I have found the flash embed code, but having trouble adding the wmode code, heres what I have done, and its not working:
$ext = strtolower($exto);
if ($ext == 'swf'){
$text.= "<OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" ";
$text.= "codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0\" ";
$text.= "WIDTH=\"$width\" HEIGHT=\"$height\"> ";
$text.= "<PARAM NAME=\"movie\" VALUE=\"{$url}$file\"> ";
$text.= "<PARAM NAME=\"quality\" VALUE=high> ";
$text.= "<PARAM NAME=\"bgcolor\" VALUE=#transparent> ";
$text.= "<EMBED src=\"{$url}$file\" quality=high bgcolor=#FFFFFF WIDTH=\"$width\" HEIGHT=\"$height\" ";
$text.= "<PARAM NAME=\"wmode\" VALUE=\"transparent\"> ";
$text.= "NAME=\"Banner\" ALIGN=\"\" TYPE=\"application/x-shockwave-flash\" ";
$text.= "PLUGINSPAGE=\"http://www.macromedia.com/go/getflashplayer\"> ";
$text.= "</EMBED> ";
$text.= "</OBJECT>";
return $text;
thanks for your help micha, site launches in two days :)
T
Tobes
01-29-2008, 03:54 PM
Ive done it Micha, thanks very very much, I will pm you the link so you can have a look.
Thanks
T
Micha
01-29-2008, 03:56 PM
Hmmm, I think that you need to put
$text.= "<PARAM NAME=\"wmode\" VALUE=\"transparent\"> ";
above
$text.= "<EMBED src=\"{$url}$file\" quality=high bgcolor=#FFFFFF WIDTH=\"$width\" HEIGHT=\"$height\" ";
$text.= "<PARAM NAME=\"wmode\" VALUE=\"transparent\"> ";
$text.= "<EMBED src=\"{$url}$file\" quality=high bgcolor=#FFFFFF WIDTH=\"$width\" HEIGHT=\"$height\" ";
Tobes
01-29-2008, 10:55 PM
yes you were right, thanks micha
heres what has worked for me, and cross compatible, mac and pc, IE, safari, and FF.
if ($ext == 'swf'){
$text.= "<OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" ";
$text.= "codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0\" ";
$text.= "WIDTH=\"$width\" HEIGHT=\"$height\"> ";
$text.= "<PARAM NAME=\"movie\" VALUE=\"{$url}$file\"> ";
$text.= "<PARAM NAME=\"quality\" VALUE=high> ";
$text.= "<PARAM NAME=\"bgcolor\" VALUE=#transparent> ";
$text.= "<PARAM NAME=\"wmode\" VALUE=\"transparent\"> ";
$text.= "<EMBED src=\"{$url}$file\" quality=high wmode=transparent WIDTH=\"$width\" HEIGHT=\"$height\" ";
$text.= "NAME=\"Banner\" ALIGN=\"\" TYPE=\"application/x-shockwave-flash\" ";
$text.= "PLUGINSPAGE=\"http://www.macromedia.com/go/getflashplayer\"> ";
$text.= "</EMBED> ";
$text.= "</OBJECT>";
return $text;
thanks for your help
T
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.