Forum Moderators: open

Message Too Old, No Replies

Flash and CSS

How to incorporate an html created in flash with CSS

         

shimeal

7:28 pm on Feb 7, 2005 (gmt 0)

10+ Year Member



Hi,

First, I am new to Flash. I have recently created a logo in flash that has some movement to it. The site this logo is going into is built on CSS (i.e. no tables). I am trying to incorporate the logo (name:bdclogo.html) into the CSS sheet so that it will display where I have a <div id="logo">. What do I write on my css page to incorporate this logo?

#logo{
INCLUDE(?): bdclogo.html}

I know the above code is horribly wrong but I am just trying to give an idea of my thought pattern. Any help would be greatly appreciated!

encyclo

7:47 pm on Feb 7, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



As far as I know, you can't insert a Flash file as a background image with CSS alone.

You have two options: the first is to simply place the usual object/embed tags for the flash file inside the

div
, and the second (if you don't want the flash file directly included) is to use Javascript to dynamically replace the
div
contents by the file, for example by adapting the SIFR (image replacement) method.

shimeal

8:20 pm on Feb 7, 2005 (gmt 0)

10+ Year Member



Thanks for the quick reply - I will see what I can do!