Jump to content


transformAroundPoint and overwrite

Moderator Tag

Recommended Posts

Hi, I have a question about use of transformAroundPoint with overwrite.


When I write

TweenLite.to(testMovie,1,{transformAroundPoint:{point:new Point(0,0)}});


and then try to overwrite it with,

TweenLite.to(testMovie,1,{point:new Point(80,80),overwrite:2});


this seems like not working. Does overwrite not work on point() for transformAroundPoint? If overwrite doesn't work on transformAroundPoint, is there any alternative way to do the same thing?


Thank you,

Link to comment
Share on other sites

There's no such thing as tweening just "point" - if you want to overwrite the transformAroundPoint, you need to tween transformAroundPoint.

TweenLite.to(testMovie, 1, {transformAroundPoint:{point:new Point(0,0)}});

//then later...
TweenLite.to(testMovie, 1, {transformAroundPoint:{point:new Point(80,80)}});

Link to comment
Share on other sites

oooh thank you, trying to overwrite point for a long time.

Thank you for the quick response :D

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.