Flash (.swf) in wordpress theme

Status
Not open for further replies.

trigatch4

BuildAndEarn
Aug 23, 2006
2,558
79
0
East Coast
www.eurekadiary.com
Hey I'm trying to put Flash as the banner in my wordpress theme (blix).

I changed this line:
background-image:url(images/spring_flavour/header_bg.jpg);

To this:
background-image:url(images/spring_flavour/header_bg.swf);

And the appropriate .swf file was created in the appropriate folder to replace this.... AND it was the appropriate size. But, it will not show up. However, when I replace with any other .jpg image it works.

Little bit of help?
 
  • Like
Reactions: barman


I'm pretty sure you can't use swf as a background image - you'll need to embed it.
 
Pretty sure with flash you have to embed it.

Delete the background image portion and edit your header.php to include the flash.
 
Yeah, you can't use it as a background.

Try embedding;

Code:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="180" height="150" title="Flash File">
  <param name="movie" value="FlashFile.swf" />
  <param name="quality" value="high" />
  <embed src="FlashFile.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="800" height="150"></embed>
</object>
or something like that. If you are still having trouble, use the full URL to the file.

:)
 
well i tried using flash to export it as an animated gif... but for some reason, it doesn't animate! I did get the object/embed working but it totally effs up the template.

If I can't get this animation working I'll just scrap the idea and go with a static banner but... lemme know if you've got any ideas
 
Another thing to try is changing the visual editor to the html editor. That will probably work for you. I've never been able to embed flash without it.
 
well i tried using flash to export it as an animated gif... but for some reason, it doesn't animate! I did get the object/embed working but it totally effs up the template.

If I can't get this animation working I'll just scrap the idea and go with a static banner but... lemme know if you've got any ideas

Embed the flash movie in a DIV positioned as the background. Look up position: absolute and z-index CSS parameters. That should do it.
 
Do you even need it to be a backgroung? Is there going to be anything on top of it?
 
Wait do you want the new flash header where the old one was? You can always find the div in the wordpress code and add it in the header.php
 
Status
Not open for further replies.