PDA

View Full Version : How can I get full-browser flash with an HTML header?


cshArpe
08-25-2009, 07:41 AM
Say I have an HTML header that is 100px in height.
How can I embed flash under the header so that it will fill the remaining space, extending down to the bottom of the browser window?

Like this:

http://img136.imageshack.us/img136/7391/gotoandlearn.th.jpg (http://img136.imageshack.us/i/gotoandlearn.jpg/)

Thanks!

tadster
08-26-2009, 12:11 AM
<html>

<body style="margin:0%;padding:0%">

<div id="header" style="width:100%;background:black;height:100px;">&nbsp</div>


<div id="theflash" style="width:100%;height:100%">

<object data="my.swf"
id="myswf" width="100%" height="100%">
...
</object>

</div>


</body>
</html>




something along those lines should work.

cshArpe
09-03-2009, 02:56 AM
thanks for the reply!

i tried that but it doesn't work. the .swf remains the same size and just moves 100px down... you end up with a scroll bar on the right side of the window.

any other thoughts? what about using html frames?

tadster
09-03-2009, 07:58 AM
so you mind the scroll bar?
add ;overflow:hidden to the body style, that will get rid of the scrollbar.

it's the swf that fills the rest of the space, thereby creating the scrollbar....

it's set at height=100% and width=100% this is what makes it fill the entire browser window, the 100px is your header.