Jump to content
Search Community

How to add onComplete to few Tweens [SOLVED]

vasyanik test
Moderator Tag

Recommended Posts

Hej, there!

 

For example, I have function like this

 

function ExpandTween (ClipName, ClipHeight) {
TweenLite.to(ClipName, 1.5, {y:(ClipName.y + ClipHeight), ease:Elastic.easeOut, onComplete:myFunction});
}

 

And I want to pass few clips into it, that they will move together with same distance between them.

But right after I want to do something with them right away, so I need add "onComplete".

It's works great, when it's just one clip, but question is how to add one onComplete to whole function?

 

P.S. Sorry, if my question isn't clear - I'm newbie in AS3 and english :-)

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...