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.
Try using UIComponent.transformAround. The transformCenter should be the center of the pinch in the local coordinates of the image.