1 Reply Latest reply on May 25, 2006 3:54 AM by Newsgroup_User

    Using the Point function

    Jan_Carlo
      Does anyone know how it is possible to make the bottom left corner of the stage the zero point of the mouseV function.
      I only manage to get the upper left..

      Have a sparkling day
        • 1. Re: Using the Point function
          Level 7
          Strictly speaking, no you can not make the bottom left corner of the stage
          the zero point of the mouseV function. You can however perform a simple
          calculation which in effect does this. These two expression will translate
          the mouseV and mouseH function to do what you want

          the stage.rect[3] - the stage.rect[1] - the mouseH

          the stage.rect[4] - the stage.rect[2] - the mouseV

          Note that you will get negative numbers or numbers bigger than the
          height/width of the stage when the mouse is not within the stage itself. So
          you may need to check for this and handle it in whatever code you are
          implementing.



          "Jan Carlo" <webforumsuser@macromedia.com> wrote in message
          news:e53ic2$1k5$1@forums.macromedia.com...
          > Does anyone know how it is possible to make the bottom left corner of the
          stage the zero point of the mouseV function.
          > I only manage to get the upper left..
          >
          > Have a sparkling day