Jump to content


transformAroundPoint ipad question

Recommended Posts

Hi, im trying to make an ipad app and im trying to use the "transformAroundPoint" plugin of yours so that i can make a movieclip rescale from a point decided by the zoom gesture. 

Up to now, all i've managed to do is taht it rescales a bit, from the center point of the image and then it goes back to the size and position it had before the zoom touch.

can someone help me?

thanks for your time


this is the line of code i have used:



img3.addEventListener(TouchEvent.TOUCH_BEGIN, taphandler);



function taphandler(evt:TouchEvent):void
puntito = new Point(mouseX,mouseY);
function onGesturePinch(event:TransformGestureEvent)
TweenLite.to(img3, 1, {transformAroundPoint:{point:puntito, pointIsLocal:true, scaleX:event.scaleX, scaleY:event.scaleY}});




Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.