Javascript createjs-结束标签动画检测

Javascript createjs-结束标签动画检测,javascript,animation,createjs,detect,tweenjs,Javascript,Animation,Createjs,Detect,Tweenjs,我使用Adobe AnimateECC创建了一些tweens,该动画有3个标签: 从控制台我可以得到它: elm.children[0].timeline._labels Object {animation_1: 0, animation_2: 31, animation_3: 62} 问题是:如果我触发动画_1,将触发动画_1、2和3。 如果我触发动画2,将触发动画2和3 如何检测每个标签的最终效果,以便在该标签动画完成时设置回调 elm.getChildAt(0).gotoAndP

我使用Adobe AnimateECC创建了一些tweens,该动画有3个标签:

从控制台我可以得到它:

elm.children[0].timeline._labels    
Object {animation_1: 0, animation_2: 31, animation_3: 62}
问题是:如果我触发动画_1,将触发动画_1、2和3。 如果我触发动画2,将触发动画2和3

如何检测每个标签的最终效果,以便在该标签动画完成时设置回调

elm.getChildAt(0).gotoAndPlay("animation_1");
然后检测此标签何时完成