A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: browser size

  1. #1
    Junior Member
    Join Date
    Aug 2006
    Posts
    3

    browser size

    hi
    i use dreamweaver and flash 8

    i have a flash website im building i need to get the browser to open only to the dimensions of the movie. how can i possibly do this?? ive looked around for ages but cannot find a way of doing it. i thought this would be quite simple. I can either have it in the first page or then click on a link to open a page with it fitting the movie . is this possible please help!

  2. #2
    Beyond the Sea
    Join Date
    Mar 2000
    Posts
    997
    No. You can only re-size a browser window that you create with javascript. The usual way around this is to use window.onLoad to run the javascript popup function to pop a new window and size it to your SWF.

    However, most modern browsers stop this from happening because of bad advertisers and their popup ads.

    So, your best bet is to not display your flash in a window, but create a nice background and center your flash piece in the user's own browser window.
    The Coolest Website EVER!
    Do you live in Kansas City? Come join us at KCWebCore

  3. #3
    Member
    Join Date
    Jun 2006
    Location
    World Wide Web
    Posts
    55
    Another way is to write the function that opens the window in javascript in your html page and then use fscommand to call up the function from within Flash.

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