Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New to the CF scene
    Join Date
    Oct 2009
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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

  • #2
    Senior Coder coothead's Avatar
    Join Date
    Jan 2004
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,702
    Thanks
    0
    Thanked 233 Times in 228 Posts
    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

  • #3
    New to the CF scene
    Join Date
    Oct 2009
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

  • #4
    Senior Coder coothead's Avatar
    Join Date
    Jan 2004
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,702
    Thanks
    0
    Thanked 233 Times in 228 Posts
    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!!!

  • #5
    New to the CF scene
    Join Date
    Oct 2009
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Dear Coothead,

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

    Chava

  • #6
    Senior Coder coothead's Avatar
    Join Date
    Jan 2004
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,702
    Thanks
    0
    Thanked 233 Times in 228 Posts
    No problem, you're very welcome.

    coothead


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •