Jump to content
Search Community

TransformAroundPointPlugin, Modify point

Drazhaar test
Moderator Tag

Recommended Posts

Hello ,

 

I would like to know how i can change the point value of this plugin but without recreate the tween object, if it's possible.

 

Initialisation

var tweenResizePoint:Point = new Point(0,0);

_growTween = new TweenLite (card, 0.3, {transformAroundPoint:{point:tweenResizePoint, scaleX:2.2, scaleY:2.2}, ease:Back.easeOut,paused:true});

 

onOver of a button

_growTween.play();

 

onOverOut of this same button

_growTween.reverse(true);

 

onClick of this same button

// I know this modification don't affect the tween but this is for the idea 
tweenResizePoint.x += 5;
tweenResizePoint.y -= 10;

 

 

thanks for your help,

best regards,

 

Drazhaar

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