A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: CONSTRAIN WINDOW

  1. #1
    Senior Member
    Join Date
    May 2001
    Posts
    121

    Red face

    I made a very simple HTML doc with just an OBJECT and EMBED tag. How can I constrain my HTML window so that there is not extra space around the browser window?

  2. #2
    Senior Member
    Join Date
    Jul 2000
    Posts
    252
    by this i assume your file is not opening in a new window...

    ok two ways to do this, the first would be to strech your flash movie to fit the window (will cause funny results if the movie gets squished, so no)

    the second way is better but does not work in netscape to do this you need to remove the margins from the page using either

    topmargin="0" leftmargin="0" in your body tag or a in style using: style="margin:0px 0px 0px 0px".

    either on will work, then you need to get rid of the scroll bar completely (ie leaves a gap on the right even if there isnt one) using:

    scroll=no in your body tag.

    and then you need to resize the window to fit your file, just not that the window will still have menus/statusbar/addressbar etc.

    onload="javascript:window.resizeTo(400,300)

    in the body tag, substituting the 400,300 with your width and height.




  3. #3
    Senior Member
    Join Date
    May 2001
    Posts
    121

    window resize

    Everything works except for this part:

    onload="javascript:window.resizeTo(600,250)"

    Any solutions?

    Thanks Threnody,

    Lea

  4. #4
    Senior Member
    Join Date
    May 2001
    Posts
    121

    oh, it does work

    720 x 370

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