Skip to main content

How to know an animation has finished?

1 reply [Last post]
Joined: 2009-06-18

I'm trying to write a playback function where on clicking the play button, it will call the following function:

TimingTrigger.addTrigger(animator1, animator2, TimingTriggerEvent.STOP);

As I need to change the button from "pause" to "play" after animation2 has ended, is there any way to know that animation2 has ended so that the application can call another method to switch the button image?

Thanks in advance.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2006-03-24

Do you have TimingTarget attached to the second animator??