Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-08-2012, 07:22 PM   PM User | #1
chavad
New to the CF scene

 
Join Date: Oct 2009
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
chavad is an unknown quantity at this point
Fit a Flash SWF File to Any Screen Size

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
chavad is offline   Reply With Quote
Old 08-08-2012, 07:43 PM   PM User | #2
coothead
Senior Coder

 
coothead's Avatar
 
Join Date: Jan 2004
Location: chertsey, a small town 25 miles south west of london, england.
Posts: 1,545
Thanks: 0
Thanked 195 Times in 191 Posts
coothead will become famous soon enough
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
coothead is offline   Reply With Quote
Old 08-08-2012, 07:52 PM   PM User | #3
chavad
New to the CF scene

 
Join Date: Oct 2009
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
chavad is an unknown quantity at this point
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
chavad is offline   Reply With Quote
Old 08-08-2012, 08:16 PM   PM User | #4
coothead
Senior Coder

 
coothead's Avatar
 
Join Date: Jan 2004
Location: chertsey, a small town 25 miles south west of london, england.
Posts: 1,545
Thanks: 0
Thanked 195 Times in 191 Posts
coothead will become famous soon enough
Hi there chavad,

the following basic code will give a full browser "swf"...
Code:
<!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

Last edited by coothead; 08-08-2012 at 11:57 PM.. Reason: typing error!!!
coothead is offline   Reply With Quote
Old 08-09-2012, 01:39 AM   PM User | #5
chavad
New to the CF scene

 
Join Date: Oct 2009
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
chavad is an unknown quantity at this point
Dear Coothead,

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

Chava
chavad is offline   Reply With Quote
Old 08-09-2012, 02:48 PM   PM User | #6
coothead
Senior Coder

 
coothead's Avatar
 
Join Date: Jan 2004
Location: chertsey, a small town 25 miles south west of london, england.
Posts: 1,545
Thanks: 0
Thanked 195 Times in 191 Posts
coothead will become famous soon enough
No problem, you're very welcome.
coothead
coothead is offline   Reply With Quote
Reply

Bookmarks

Tags
autofit, browser size, fit, resolution, swf

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:06 AM.


Advertisement
Log in to turn off these ads.