Jump to content
Search Community

[Solved] Possible? Tweening Two Aspects Of One Clip At Different Rates

stevenp test
Moderator Tag

Recommended Posts

Let me preface with a heartfelt "Thank you!", for both this excellent package Jack, but also the way you and Carl support people here. Two different arenas, and two exemplars of fantastic "stuff".

I've been going back and looking at some of my AS2 projects to see about updating them, but first migrating them to greensock before moving them to AS3 projects. With that in mind, I've been trying to figure out a way to both move a clip and fade it in, starting at the same time but ending at a different time. Specifically, I wanted to make the fade in finish after the clip had stopped moving.

Sorry if it is obvious, and thank you in advance. :-)

Steve

Link to comment
Share on other sites

Sure if you want to animate 2 properties at different rates, you would just need 2 tweens

 

AS3

TweenLite.to(clip, 1, {x:200});
TweenLite.to(clip, 2, {alpha:1})

If you want those tweens to be part of a TimelineLite, you can do this

var tl = new TimelineLite();
tl.to(clip, 1, {x:200})
  .to(clip, 2, {alpha:1}, 0); // start at 0 seconds
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...