3 Replies Latest reply on Nov 16, 2009 1:34 AM by Pavlov.bsv@gmail.com

    full screen bckground in flash

    Soul Scream

      hi guys,

       

           I've been doing a project and i want the background fullscreened, i got it going but i had a problem, the image is disproportioned when i resize the browser. i used this scryts for it..

       

      Stage.scaleMode = "noScale";
      Stage.align = "TL"

       

      function onResize():Void {
          mc_bg._width = Stage.width;
          mc_bg._height = Stage.height;

       


      }
      Stage.addListener(this);

       

       

      what i want is the background to be still regardless of the browser size.

       

      any beter ideas and suggestons would be appreciated.

        • 1. Re: full screen bckground in flash
          Pavlov.bsv@gmail.com

          Hi!

          sorry for my post - but I wanna clarify:

          if your image has a side = 2 and its another side = 1, and your screen (browser) the ones 1.5 and 1, but you try to ram that image into the screen (screen._width - image._width = -0.5; the screen._width lacks 0.5), what is to do your computer: either 1)  to crop the image._width or 2) to extend the image._height;  or 3) to refuse to make the background fullscreened.

          • 2. Re: full screen bckground in flash
            Soul Scream Level 1

            hi there pavlov

             

                 thanx for the reply man, been posting alot of questions here but none of them got answered, lol, i mean when it comes to this kind of deep stuff about flash.

             

            anyway, Ive read youre reply but i dint get what you mean?

            • 3. Re: full screen bckground in flash
              Pavlov.bsv@gmail.com Level 1

              Hi, Soul Scream!

               

              You can compare a long square, or an orthogon, and a square, that has four

              equal sides.

               

              The long square has - on the one hand - 2 bigger  sides - and - on the other

              hand - 2 smaller:

              ___

              ___

               

              The square has four equal sides:

              __

              __

               

              So, you can consider that the long square is your image and the square -

              your screen. If you combine the first with the second, you can see, that the

              square is longer, so a part of your image is "abroad":

              ___

              __

              _

               

               

               

               

              2009/11/14 Soul Scream <forums@adobe.com>

               

              hi there pavlov

              >

                   thanx for the reply man, been posting alot of questions here but none

              of them got answered, lol, i mean when it comes to this kind of deep stuff

              about flash.

              >

              anyway, Ive read youre reply but i dint get what you mean?

              >