2 Replies Latest reply on Jul 27, 2007 11:03 AM by Damon Edwards

    Screen size to determine Stage scale mode

    Damon Edwards Level 3
      right now I'm using the resolution settings to change the scale mode, but it's not really what i want.. basically, if the scroll bars have to come up, I want the movie to scale to fit, otherwise, it shouldn't scale to fit... have any ideas? Attached is what I'm using now
        • 1. Re: Screen size to determine Stage scale mode
          Damon Edwards Level 3
          not one idea out there? Javascript maybe? I can grab the screen size with Javascript... send a variable to flash, and put it in if statement...?.. what do you think?
          • 2. Re: Screen size to determine Stage scale mode
            Damon Edwards Level 3
            ok, i'm going to the Javascript route, however, I'm stuck on getting those variables into flash.. I use SWFObject to embed, and this is how you're supposed to send variables to flash
            so.addVariable('Sheight', 'screenH');

            where Sheight is the variable name, and screenH is the value... well my value needs to grab from javascript function that gets the width and height... it stores the value in screenH and screenW... but what i'm using now, isn't working, it's returning undefined.
            This is what i'm using in flash to see what the value is..
            screenH_txt.text = _root.Sheight;