# .swf as background in html

**URL:** <https://forum.kirupa.com/t/swf-as-background-in-html/65246>\
**Category:** flash\
**Created:** [September 24, 2004, 10:08am UTC](https://forum.kirupa.com/t/swf-as-background-in-html/65246 "2004-09-24T10:08:00Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![xyeight](https://avatars.discourse-cdn.com/v4/letter/x/ba9def/32.png) [@xyeight](https://forum.kirupa.com/u/xyeight)\
**Post date:** [September 24, 2004, 10:08am UTC](https://forum.kirupa.com/t/swf-as-background-in-html/65246/1 "2004-09-24T10:08:00Z")

</div>

can i use my flash file let say bg.swf as my bg in html?  
how is the html coding?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 24, 2004, 10:15am UTC](https://forum.kirupa.com/t/swf-as-background-in-html/65246/2 "2004-09-24T10:15:15Z")

</div>

> [@xyeight](#):
>
> can i use my flash file let say bg.swf as my bg in html?  
> how is the html coding?

I think it’s impossible … 'cause we’re using the embedd tag to insert flash movie into HTML. But i suspect usign the WMODE = transparent to make out any special effect like bg but i’m not sure… :h:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 24, 2004, 10:16am UTC](https://forum.kirupa.com/t/swf-as-background-in-html/65246/3 "2004-09-24T10:16:25Z")

</div>

so…if i wanna used embedd tag, how’s the code. plss

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 24, 2004, 10:43am UTC](https://forum.kirupa.com/t/swf-as-background-in-html/65246/4 "2004-09-24T10:43:47Z")

</div>

> [@xyeight](#):
>
> so…if i wanna used embedd tag, how’s the code. plss

\<embed src=“[http://www.yourpage.com/mysswf.swf" quality=“high” pluginspage="[url=“http://www.macromedia.com/go/getflashplayer”]http://www.macromedia.com/go/getflashplayer](http://www.yourpage.com/mysswf.swf)” type=“application/x-shockwave-flash” width=“600” height=“325”\>\</embed\>

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 24, 2004, 10:52am UTC](https://forum.kirupa.com/t/swf-as-background-in-html/65246/5 "2004-09-24T10:52:32Z")

</div>

but the flash file will be infront of all other thigs right…?  
it will not become the bg i guess

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 24, 2004, 11:01am UTC](https://forum.kirupa.com/t/swf-as-background-in-html/65246/6 "2004-09-24T11:01:41Z")

</div>

i’ve tried but it cover all other things…so i’m not ganna use it…but thanks very much abhilashkk.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 24, 2004, 2:19pm UTC](https://forum.kirupa.com/t/swf-as-background-in-html/65246/7 "2004-09-24T14:19:39Z")

</div>

You cannot have a Flash file as an HTML page background due to the fact that it must be embedded in the HTML file using the embed tags.

However, if you set the wmode to transparent for the movie you can use DIV tags and z-index to make it appear as though your HTML content is over the Flash movie. Though, this can be picky cross browser and not really recommended.

Why would you want a Flash movie to be a background though? It would seem a bit too distracting if you ask me :x

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 27, 2004, 1:34am UTC](https://forum.kirupa.com/t/swf-as-background-in-html/65246/8 "2004-09-27T01:34:53Z")

</div>

i just wanna have a simple animation bg,that’s all…but since it can’t be done, i just stick to the common Jpeg bg.  
thanks lostinbeta.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 27, 2004, 2:38am UTC](https://forum.kirupa.com/t/swf-as-background-in-html/65246/9 "2004-09-27T02:38:12Z")

</div>

Try File\> Export Movie then change the Save As Tye to Animated GIF, this will solve your problem

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 27, 2004, 10:10am UTC](https://forum.kirupa.com/t/swf-as-background-in-html/65246/10 "2004-09-27T10:10:02Z")

</div>

wow…i didn’t think of that. thanks helmz!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 27, 2004, 7:08pm UTC](https://forum.kirupa.com/t/swf-as-background-in-html/65246/11 "2004-09-27T19:08:41Z")

</div>

Notes about that method: All animation must be contained on the main timeline (nothing inside movieclip symbols) and all actionscript will be stripped upon exporting it as a gif, so don’t control any of your animation via actionscript.

Also it is common for image quality to decrease when using Flash to export any of the content as an image. Macromedia really needs to fix this one ☹
