A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Browser size detection

  1. #1
    Member
    Join Date
    Jan 2001
    Posts
    99
    Guys,

    I need a script that detects browser size (width/height or resolution) and should fit the swf file to the appropriate browser size. If the browser is expanded to 1024x769 then the swf file should also expand to the same. If the browser is minimised then the swf file should also get minimised. Ive seen this script some where, but couldnt figure it out where..!!!

    Thanks,
    Jeswin

  2. #2
    N' then I might just
    Jump back on
    An' ride
    Like a cowboy
    Into the dawn
    ........To Montana.
    david petley's Avatar
    Join Date
    Jun 2000
    Location
    not in Montana ™
    Posts
    10,192
    Hi,
    moved to General Help. The Coffee Lounge is not the place for help questions but for general conversation.

    david p.

  3. #3
    Junior Member
    Join Date
    Jul 2001
    Posts
    29

    open the swf


    Hi

    You may not need a script.

    Try setting the movie size to 100% width and 100% height. It'll then fill the screen, though I can't remember if it'll shrink if you re-size the window.

    Alternatively, for the link which calls the page with the movie, instead of referring to an html page with the movie in it, just reference the swf

    eg. <a href="movie.swf">

    That way the swf will load into the window full-screen and this definitely WILL re-size if you resize the window.

  4. #4
    Moderator enpstudios's Avatar
    Join Date
    Jun 2001
    Location
    Tampa, Fl.
    Posts
    11,282

    File > Publish Settings > HTML Tab

    Dimensions set to "PERCENT" 100 / 100

    Scale set to "Exact Fit"


    Also put these in your <body> tag:

    leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"

  5. #5
    Member
    Join Date
    Jan 2001
    Posts
    99

    Smile

    Thanks guys

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