A Flash Developer Resource Site

Results 1 to 9 of 9

Thread: Full Screen background Question

  1. #1
    Member
    Join Date
    Mar 2006
    Posts
    48

    Full Screen background Question [NOT SOLVED]

    Hello to every1.
    Im making a website that will fill all the browsers space. The background is a landscape and is not going to be moving at all. Depending on the resolution size of the user, the background needs to be smaller or bigger. I dont know if I need one image with different size for each resolution or if is something else I need to do.

    The thing that worries me the most is how big the image has to be in order to fulfill the largest or biggest resolution.

    Anyone knows whats the size of the browser without counting the tools bar and the status bar??

    PD. The full screen is inside the browser. No popups or nothing will be added.
    Last edited by pucca017; 01-30-2007 at 10:53 AM.

  2. #2
    Member
    Join Date
    Mar 2006
    Posts
    48
    Please some help? whats going on

  3. #3
    Senior Member
    Join Date
    Aug 2004
    Location
    plymouth-uk
    Posts
    313
    are you talking html page here or within the flash .swf file itself etc
    NOW! look whats happened! I told you to watch this space and now its gone.

  4. #4
    Member
    Join Date
    Mar 2006
    Posts
    48
    of course a flash.

  5. #5
    Senior Member
    Join Date
    Aug 2004
    Location
    plymouth-uk
    Posts
    313
    if the whole thing is in a flash .swf/projector then on fullscreen it will all scale to that size??
    NOW! look whats happened! I told you to watch this space and now its gone.

  6. #6
    Member
    Join Date
    Mar 2006
    Posts
    48
    Sorry to bother you, but My english is broken. please check this site
    http://www.podmedialtd.com/
    as you can see he made the flash to fit in all the browser, regardless the user resolution so the flash "adapts" to the user resolution. I know some of the mc_symbols have another script in order to move when the user minimize the browser but thats not the point. I just need to know this:
    1. How to make my flash to fill the browser like that.
    2. If im using a background wallpaper, how big has to be? or I need to use several copies of the same image but with different sizes to acomplish my goal?

    Thank you so much for your interest in answering my question.

  7. #7
    Junior Member
    Join Date
    Dec 2008
    Posts
    1

    Smile

    ok...this is a old one... But, I think I had the same problem as describe here:

    you want to have a full browser page image background? and all the other elements (button, movie clic, whatever) not be resized like this:

    http://www.aurelienbercon.com/fullbrowser/

    in this example, I have:
    - a MovieClip that contains the background , instance name : “backg”
    - A MovieClip that contains a image (the turntable) positioned in the middle, instance name: “turn”

    Here is the ActioScript:

    //this function fills the background with the image)-----------------------------
    function fillBG() {
    //backg must have the same size of the stage (browser page
    backg._width = Stage.width;
    backg._height = Stage.height;
    //…and it has to be positioned in the middle
    backg._x = Stage.width / 2;
    backg._y = Stage.height / 2;
    }
    //I call the function
    fillBG();
    //I create an object that be a listener (it will “listen” if the stage is resized)-----------------
    var stageL:Object = new Object();
    //if the stage is resized: I call the function “fillBG” again (to resize the background) and I repositioned the “turn” image in the middle
    stageL.onResize = function() {
    fillBG();
    turn._x = Stage.width / 2;
    turn._y = Stage.height / 2;
    }
    //I attach the listener to the stage
    Stage.addListener(stageL);


    when publishing the HTML, “Dimensions” should be in “Percent” and “flash alignment” : “left” and “Top”

    Then open the HTML file in a text editor and change the body tag by:

    <body bgcolor="#000000" scroll="no" bottommargin="0" rightmargin="0" topmargin="0" leftmargin="0">

    (This will fill totally the html page)


    I hope it will be useful for someone, even if the post is 2 years old.


    By the way: I was helped by this tutorial:
    http://www.gotoandlearn.com/play?id=31 (called “Full Browser Flash”)


    I spent most of the day on it, so I wanted to share it with someone

  8. #8
    Junior Member
    Join Date
    Sep 2004
    Posts
    12
    My movie clip still will not consistently fill the window. What might I be doing wrong? http://www.invisiongrafix.com/samples/IG/

  9. #9
    Junior Member
    Join Date
    Sep 2004
    Posts
    12
    I got this to work but would like to use it in a number of scenes. When I do this I get conflicts. How would you use this script in multiple scenes?

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