www.webdeveloper.com
Results 1 to 3 of 3

Thread: Fit a Flash SWF File to Any Screen Size

  1. #1
    Join Date
    Dec 2009
    Posts
    16

    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. #2
    Join Date
    Jan 2004
    Location
    chertsey, a small town s.w. of london, england.
    Posts
    1,458
    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="some.swf">
     <param name="movie" value="some.swf">
    </object>
    </div>
    
    </body>
    </html>
    
    coothead

  3. #3
    Join Date
    Dec 2007
    Location
    Kelowna, BC
    Posts
    100
    Nice routine, many thanks for sharing!!

    All the best,
    Cal
    Visiting or Relocating to the Okanagan Valley...
    http://www.okanaganforum.com

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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
  •  
HTML5 Development Center



Recent Articles