0 Replies Latest reply on Aug 17, 2006 3:02 AM by Newsgroup_User

    scrollRect help?

    Level 7
      Hi

      I m using the scrollRect function to scroll around a large map image. When
      the user clicks the mouse I want to zoom in on the map, by 150%. I have used
      _xscale and _yscale to zoom in, but this is where i m stuck, its seems that
      when I use the _xscale and _yscale on my image, it scales its from 0,0 from
      the top left, which means, that it zooms into the wrong place on the image.
      I guess I need to update the _x and _y of the scrollRect rectangle, but I m
      unsure of how to write this calculation. I need the visible area to keep
      showing the part of the image that the user clicked on.

      Any help or advice would be greatly appreciated!

      Shaun