Jump to content
Search Community

zoom

chefkeifer test
Moderator Tag

Recommended Posts

No, transformAroundCenter wouldn't apply because I assume you cannot expect the user to always click exactly on the center of the object, but transformAroundPoint might help. Since you probably want that point to move so that it's centered in some area/window/mask, you'd also want to add x and y properties to that transformAroundPoint rather than just scaleX/scaleY. Kinda like:

 

TweenLite.to(mc, 1, {transformAroundPoint:{point:new Point(this.mouseX, this.mouseY), scaleX:3, scaleY:3, x:stage.stageWidth / 2, y:stage.stageHeight /2}});

 

Obviously you may need to tweak some of those values, but hopefully it gives you the general idea. And remember that transformAroundPoint is only available to "Really Green", "Shockingly Green", and corporate Club GreenSock members.

Link to comment
Share on other sites

  • 2 weeks later...

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.
×
×
  • Create New...