A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: How do I stretch an SWF to comepletely fit a browser window?

  1. #1
    Junior Member
    Join Date
    Jan 2007
    Posts
    16

    How do I stretch an SWF to comepletely fit a browser window?

    I cannot stretch swf to comepletely fit a browser window.
    I have tried to use 100% code but this didnt solved the problem.


    sample 1

    This is how my sample looks when i open it in web page. Swf sample is in 1024X768 resolution. I have capture this when i was on 800X600 resolution.
    http://img208.imageshack.us/my.php?i...100code0gz.jpg

    sample 2

    The same sample but this time i used 100% code. I capture this also in 800X600 resolution.
    http://img208.imageshack.us/my.php?i...024x7680px.jpg

    How do I stretch an SWF to comepletely fit a browser window? I dont want any white background as you can see it in this 2 samples.

  2. #2
    Senior Member
    Join Date
    Oct 2004
    Posts
    2,049
    in your index.html put this code

    Code:
    <style>
     body{margin:0px;padding:0px}
    </style>
    should get rid of the white space

  3. #3
    Junior Member
    Join Date
    Jan 2007
    Posts
    16
    Thank you very much!
    It works.

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center