I've been using this code to try and make a swf file fit my screen or any screen it's on, but I've run into an issue. When using this code, the player in both Chrome and IE stretches to fit the screen width, but the height remains the same, not filling up the screen vertically. Why is the width working but not the height?!
<style>
player {
width:100%;
height:100%;
}
</style>
<!--[if IE]><object
id="player"
type="application/x-shockwave-flash"
classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://fpdownload.adobe.com/pub/shockwave/cabs/flash/swflash.cab"
><![endif]-->
<!--[if !IE]>--><object
id="player"
type="application/x-shockwave-flash"
codebase="http://fpdownload.adobe.com/pub/shockwave/cabs/flash/swflash.cab"
data="/<? echo "$swf"; ?>.swf"
><!--<![endif]-->
<param name="movie" value="/<? echo "$swf"; ?>.swf" />
<param name="quality" value="high" />
<param name="scale" value="noborder" />
<p>
<a href="http://get.adobe.com/flashplayer/">
Adobe Flash Player
</a> is required to view this content.
</p>
</object>
EDIT: If I change width:100%; & height:100%; to, for example, 600 for both, it works in both IE and Chrome. But as soon as I change it to 100%, the width fits the screen while the height is only about half the screen height, and in IE the resizing doesn't work at all :<