Ive got a flash file which has a resolution of 2600x1917. I would like to make this fullscreen but not larger than the browser window itself. So that when you have a smaller resolution the flashfile will become smaller, I hope you get what I mean here.
My code looks like this:
HTML:
<div id="bege">
<script language="javascript">
if (AC_FL_RunContent == 0) {
alert("This page requires AC_RunActiveContent.js.");
} else {
AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
'width', '2600',
'height', '1917',
'src', 'bg',
'quality', 'high',
'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'noscale',
'wmode', 'window',
'devicefont', 'false',
'id', 'bg',
'bgcolor', '#ffffff',
'name', 'bg',
'menu', 'true',
'allowFullScreen', 'false',
'allowScriptAccess','sameDomain',
'movie', 'bg',
'salign', ''
); //end AC code
}
</script>
<noscript>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="2600" height="1917" id="bg" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="bg.swf" /><param name="quality" value="high" /><param name="scale" value="noscale" /><param name="bgcolor" value="#ffffff" /> <embed src="bg.swf" quality="high" scale="noscale" bgcolor="#ffffff" width="2600" height="1917" name="bg" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</noscript>
</div>
Css
body {
margin:0px;
padding:0px;
}
#bege {
z-index: 1;
position:absolute;
width: 100%;
height: 100%;
margin: 0px;
padding: 0px;
size:auto;
}
#test {
z-index: 2;
position:absolute;
background-color:#111111;
width: 150px;
height: 400px;
float:left;
top: 100px;
left: 20px;
}
I hope that someone can help me. The reason Im using this way is that I want the flash to be the background of the page.