Is there a way to limit the scope of the animation listener events? Oftentimes I listen to "layerA.onAnimationEnd" somewhere and it does what I need it to do.
But the unintended side effect is that if I animate layerA somewhere else the event fires again.
How do I confine/limit the event listeners in general to fire once, in a specific scope, or how do I make them more "localized"?
Or maybe there is a better way of doing something ONCE upon animation end and I'm just thinking about it in the wrong way?
4 Comments