Jump to content
Search Community

SubduedInsanity

Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by SubduedInsanity

  1. One of the ways I would use it is when tweening buttons in and out. Basically I have added some buttons to a view's animate In TimelineMax (on Complete they become active), and I was hoping to use it to switch off/deactivate all the buttons when told to start the reverse animation.

     

    Would this be a viable reason to add it in?

    No, not really because in the example you gave, the tween wouldn't actually be reversed - its parent TimelineMax would be. It can be a little tricky when you've got nested things, like a reversed tween that's nested in a reversed TimelineMax would appear to play forwards. See what I mean? Since onReversed* only play when the tween/timeline is actually reversed (its "reversed" property is true), it wouldn't get fired in the example you gave. You can, however, use TimelineMax's addCallback() method to put a method call at a particular time on the timeline which gets triggered regardless of whether or not the TimelineMax is reversed. So just append() your tween and then myTimeline.addCallback(myFunction, myTimeline.duration); to put it immediately after the tween. That'll get you the result you're after.

     

    Ah, ok I see. Thanks :)

  2. If you could help me understand the significant practical benefit of adding an onStartReverse, I'd gladly consider adding it.

     

    One of the ways I would use it is when tweening buttons in and out. Basically I have added some buttons to a view's animate In TimelineMax (on Complete they become active), and I was hoping to use it to switch off/deactivate all the buttons when told to start the reverse animation.

     

    Would this be a viable reason to add it in?

×
×
  • Create New...