1 Reply Latest reply on Apr 22, 2009 6:10 AM by Ned Murphy

    Zoom

    Desprez10

      Say I have a fixed stage size, and I have a game area that is bigger than the stage. (Is the stage the full size of the game? or is it the physical size that the flash file takes up?)

       

      Anyway, I want to be able to zoom in and out of the game area, as well as scroll around, without changing the physical size that the flash window takes up.

       

      Am I going to use:

      _root._width

      _root._height

       

      or does that change the window size?

       

      Also, is scrolling and scaling going to mess up the _x, _y coordinates of objects on the stage?

        • 1. Re: Zoom
          Ned Murphy Adobe Community Professional & MVP

          The stage size is the visible size of the game.  Unless I'm mistaken, you cannot manipulate the _root as if it were an object... it represents the timeline.  You will need to have your entire game contained inside a movieclip and control its scale for zooming effects.  Scrolling and scaling will change the coordinates of the items relative to the _root stage, but not relative to the movieclip that contains them.