# Embedding Flash in HTML problem with Firefox

**URL:** <https://forum.kirupa.com/t/embedding-flash-in-html-problem-with-firefox/247048>\
**Category:** flash\
**Created:** [December 18, 2007, 1:59am UTC](https://forum.kirupa.com/t/embedding-flash-in-html-problem-with-firefox/247048 "2007-12-18T01:59:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MoOMoOMiLK](https://avatars.discourse-cdn.com/v4/letter/m/919ad9/32.png) [@MoOMoOMiLK](https://forum.kirupa.com/u/MoOMoOMiLK)\
**Post date:** [December 18, 2007, 1:59am UTC](https://forum.kirupa.com/t/embedding-flash-in-html-problem-with-firefox/247048/1 "2007-12-18T01:59:08Z")

</div>

Hi guys.

I am trying to embed my Flash movie into my HTML file using Dreamweaver, with the width and the height set to 100%. The HTML file looks perfect in IE/Safari but looks messed up in Firefox. I tested it around and found out that it’s because I set the height to 100% (if I set it to a value in pixels it works in Firefox, but I need 100% height). Is there a way to get around this? Here is my HTML code:

\<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “[http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd](http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd)”\>  
\<html xmlns=“[http://www.w3.org/1999/xhtml](http://www.w3.org/1999/xhtml)”\>  
\<head\>  
\<meta http-equiv=“Content-Type” content=“text/html; charset=UTF-8” /\>  
\<title\>:: HARMONIC SPA & BEAUTY ::\</title\>  
\<script src=“Scripts/AC\_RunActiveContent.js” type=“text/javascript”\>\</script\>  
\<style type=“text/css”\>  
html, body {  
margin: 0px;  
background-color: #FFFFFF;  
}  
\</style\>  
\</head\>

```
&lt;body&gt;
    &lt;script type="text/javascript"&gt;
        AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0','width','100%','height','100%','id','Harmonic Spa & Beauty','src','indexLoader','quality','high','bgcolor','#FFFFFF','name','Harmonic Spa & Beauty','align','','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','indexLoader' );
    &lt;/script&gt;
    &lt;noscript&gt;
        &lt;object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" width="100%" height="100%" id="Harmonic Spa & Beauty"&gt;
            &lt;param name=movie value="indexLoader.swf"&gt;
            &lt;param name=quality value=high&gt;
            &lt;param name=bgcolor value=#FFFFFF&gt;
            &lt;embed src="indexLoader.swf" quality=high bgcolor=#FFFFFF width="100%" height="100%" name="Harmonic Spa & Beauty" align="" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"&gt;
            &lt;/embed&gt;
        &lt;/object&gt;
    &lt;/noscript&gt;
&lt;/body&gt;

```

\</html\>

Thanks in advance.
