Jump to content
Search Community

another easyone... "partition" of a timeline

monema test
Moderator Tag

Recommended Posts

Hi to every one,

can i use a complex timeline as a bundle of sub animations.
 

For ex. i got A to B to C to D

now i got an event and i need just to play B to C or C to B.

 

There's a way to achieve that, by...i don't now tagging or labeling around?

Thanks

Link to comment
Share on other sites

Hi @monema  I guess which approach you choose will depend on your needs but a few things to clarify

  • adding a pause() inside a function inside a timeline isn't accurate and can cause problems when reversing (which is why addPause() was created)
  • If you want to put a bunch of conditional logic inside the timeline that is synchronized with a pause its probably better to use addPause() with a callback
  • tweenTo() and tweenFromTo() don't require any calculation of duration which is a big part of their convenience.
  • tweenTo() and tweenFromTo() allow callbacks just like any tween so if you need to run a function after your animation plays you can put a callback on the tweenTo() instead of having it inside the timeline like:
    timeline.tweenTo("a", {onComplete:checkStatus"}) This may or not be important for your project.

 

  • Like 5
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...