1 Reply Latest reply on Sep 9, 2011 11:41 AM by Jason Szeto

    Pinch To Zoom On An Image

    pcoyne1979

      Hi, I am creating a Flex 4.5 mobile app. I am displaying an image, and I want to enable a 'pinch to zoom' feature on it. I am using a gesture zoom handler to achieve this. I can get the image to scale fine using the event.scaleX, event.scaleY properites in the handler. The problem I am having is in getting the image to scale from the 'pinch point'. I want the image to scale from where the user is touching, like in google maps.

       

      I am not having much luck in getting the zooming to work the way I want. Has anyone got any example code of pinch zooming in a Flex app. Thanks for any help.

       

      P