I'm trying to place a flash banner on the website I'm developing. It would be nice if the background can be set to transparent.
I've tried to implement the banner by using the code you usually use when embedding a swf.
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="1024" height="150">
<param name="movie" value="flashmovie.swf" />
<param name="quality" value="high" />
<embed src="flashmovie.swf" quality="high" type="application/x-shockwave-flash" width="1024" height="150" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>This didn't work so I used the code generated by the Wysiwyg editor when embedding flash media (I use Tinymce).
<object width='1024' height='150' data='/sites/default/files/limo_banner_test1.swf' type='application/x-shockwave-flash'><param name='wmmode' value='transparent'><param name='src' value='/sites/default/files/flashmovie.swf' wmode='transparent' /></object>
I've tried several solutions:
- Adding style="background: transparent;"
- Adding style="background: rgba(255,255,255,1);"
- Adding bg-color="transparent"
- Adding wmmode="transparent" as shown in this article: http://www.aleosoft.com/flashtutorial_transparent.html (I also added the param-stuff)
Can someone help me out?
Comments
Comment #1
Paulvddool commentedThe directory name was wrong.
The following code..
<param name="movie" value="flashmovie.swf" />had to be changed to
<param name="movie" value="/sites/default/files/flashmovie.swf" />I went wrong by thinking that the link didn't need to be more elaborate, because the swf file was in the same directory as the template file (.tpl.php).
To make the background transparent follow the instructions in the next article:
http://www.aleosoft.com/flashtutorial_transparent.html