A Flash Developer Resource Site

Results 1 to 8 of 8

Thread: [MX04] Filling browser window

  1. #1
    Thinker.... samsonknight's Avatar
    Join Date
    Mar 2001
    Location
    London, UK
    Posts
    185

    [MX04] Filling browser window

    Hi,

    I have seen this done on a lot of sites.

    Currently I have a swf file, and it it the background is not a plain colour, rather it is an image.

    Now the problem lies when stretching my swf, if I set the .swf to stretch at 100x100 it distorts the swf. I need the image to stretch without being distorted and thus filling the browser window. That means, that no matter how wide the browser window is, it stretches (without distorting it) and fills it. Any ideas on how I can go about this?

    www.Puma.com - it always resizes according to the screen res.

    Thanks.
    Last edited by samsonknight; 03-02-2008 at 03:58 PM.
    http://www.samsonknightdesign.com

  2. #2
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    check www.gotoandlearn.com.

    gparis

  3. #3
    Thinker.... samsonknight's Avatar
    Join Date
    Mar 2001
    Location
    London, UK
    Posts
    185
    Hi thanks for that, problem I am having although it resizes and positions with the browser window. (instead it crops the movie clip)I need my swf to always "show All" the clip whilst simultaneously filling the browser window.

    How can this be achieved? Thanks.
    http://www.samsonknightdesign.com

  4. #4
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    PHP Code:
    clip._width Stage.width;
    clip._height Stage.height
    gparis

  5. #5
    Thinker.... samsonknight's Avatar
    Join Date
    Mar 2001
    Location
    London, UK
    Posts
    185
    Thanks, lets say I have a movie clip, and I want it to always stay in a certain position how do I do that? no matter how much the stage resizes.

    So lets say I want it to be at the bottom left of the browser, the clip always stays at the edge of the browser no matter what.
    http://www.samsonknightdesign.com

  6. #6
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    PHP Code:
    Stage.align "TL";
    clip._x 0;
    clip._y Stage.height clip._height
    assuming clip's registration is 0,0.

    gparis

  7. #7
    Thinker.... samsonknight's Avatar
    Join Date
    Mar 2001
    Location
    London, UK
    Posts
    185
    Thanks although I am still unable to get it to work

    Below is my .fla

    http://www.samsonknightdesign.com/rainbow/squirral.zip

    thanks again.
    http://www.samsonknightdesign.com

  8. #8
    Thinker.... samsonknight's Avatar
    Join Date
    Mar 2001
    Location
    London, UK
    Posts
    185
    Quote Originally Posted by samsonknight
    Thanks although I am still unable to get it to work

    thanks again.
    http://www.samsonknightdesign.com

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