...

View Full Version : Fit a Flash SWF File to Any Screen Size



chavad
08-08-2012, 08:22 PM
Dear Everyone, I have an SWF in an HTML page that changes its width according to the browser size - I need the height to also adjust to varying screen sizes. I've tried height:100% and other specific instructions but nothing helps. I would greatly appreciate any ideas!

Thank you! Chava Drummond

coothead
08-08-2012, 08:43 PM
Hi there chavad,

it would help the members here, to solve your problem if
you gave us a link to the site and or the full page code. ;)

coothead

chavad
08-08-2012, 08:52 PM
Dear Coothead,

Thanks so much - I realize that and would definitely give it to you; it's just that I was asked to do this for a professional who's creating the site for a client, so I don't know if she'd be alright with anything being publicized....

What do you think we can do without seeing the code?

Thanks so much!
Chava

coothead
08-08-2012, 09:16 PM
Hi there chavad,

the following basic code will give a full browser "swf"...

<!DOCTYPE html>
<html lang="en">
<head>

<meta charset="utf-8">

<title>untitled document</title>

<style>
html,body {
height:100%;
margin:0;
}
#swf-holder {
height:100%;
}
#swf-holder object {
display:block;
width:100%;
height:100%;
}
</style>

</head>
<body>

<div id="swf-holder">
<object type="application/x-shockwave-flash" data="http://www.coothead.co.uk/images/chswf.swf">
<param name="movie" value="http://www.coothead.co.uk/images/chswf.swf">
</object>
</div>

</body>
</html>

coothead

chavad
08-09-2012, 02:39 AM
Dear Coothead,

Thank you so very, very much - your code worked for me!!!

Chava

coothead
08-09-2012, 03:48 PM
No problem, you're very welcome. ;)

coothead



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum