4 Replies Latest reply on Jul 21, 2006 10:22 AM by micahkoga

    "Zooming" in on an image using _xscale

    FishMoose Level 1
      I need to "zoom" in on an image. I am using _xscale & _yscale to achieve this and it works. The problem is that if I have scrolled to some part of the image, then try to "zoom" in, Ithe image seems to pan left or right as it zooms in, then pans the opposite as I zoom out.

      Here is the code I am using:

      _root.photo._xscale = _root.photo._xscale + 2;
      _root.photo._yscale = _root.photo._yscale + 2;