A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Resize browser win and swf centers without resizing

  1. #1
    Junior Member
    Join Date
    Jul 2002
    Posts
    9

    Resize browser win and swf centers without resizing

    Hi all. I was looking at the praystation guy's portfolio and saw this website:

    http://www.808inc.com


    It's interesting because he is using a frameset so that he has no empty scroll bar, but when you resize the window, the swf centers itself.

    This way he can simulate a "background" file that the swf is centered on regardless of the viewer's resolution.

    I've looked at the code and even tested it and the way the code is setup, but the swf is shrinking when the browser is resized.

    I did the same thing with my site www.seantepper.com (still working out a couple of bugs), but I just made my swf transparent and threw it in a table that makes sure it's centered in my browser window.

    If I could include the background in my swf, that would be one less thing, plus the transparency would work in browsers like Firefox.

    Any idea how he is doing this?

  2. #2
    Junior Member
    Join Date
    Jul 2002
    Posts
    9
    sorry for the bump, but I'm really curious about this one.

    Could it be some AS code that makes the swf center/resize itself depending on browser window size or monitor resulution?

  3. #3
    Member
    Join Date
    Jan 2003
    Posts
    78

    ...

    i dont know but a few things. His flash document is not resizing and the backround is not an html backround - the backround is his entire .swf document.

    He is some how making the .swf scroll to the left of the web page when you resize your browser instead of normaly stoping.
    chris davis

  4. #4
    Senior Member sharma's Avatar
    Join Date
    Oct 2004
    Location
    Canadia
    Posts
    1,017
    Here is the site outside of frames.. look at the source code.
    http://www.808inc.com/01_directory.html
    the .swf is set to be 100% of the browsers dimensions.

    Now when publishing your .swf look for the no scale option.
    Together this will create your desired effect.


    width="100%" height="100%"
    Last edited by sharma; 01-17-2005 at 04:39 PM.
    what the hell's a motion tween?

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