I'm using Animate CC 2017 to create HTML banner animations.
After certain time, I like to stop animation. This code below stops the main timeline:
setTimeout(function(){
stage.getChildAt(0).gotoAndStop(90);
}, 1000);
But if there are other movieclip animations in the main timeline, they continue to play.
I tried this to stop them:
setTimeout(function(){
stage.getChildAt(0).gotoAndStop(90);
for (var i=0; i<stage.getChildAt(0).numChildren; i++){
stage.getChildAt(0).getChildAt(i).stop();
};
}, 1000);
but that didn't work.
Also I've tried selecting a certain movieclip by it's name. No luck there either.
Have anyone have a solution for this headache? Thanks.