0
votes

I am making a animation(game) through Adobe Animate.

I want to make my character look as if he is speaking by making a frame-by-frame animation in the internal timeline so that it can repeat until he is done speaking.

If the last frame has played, and the loop has terminated, I want to go to the next frame on the main timeline.

However, I have no idea what code to insert (JavaScript) to make this happen.

I tried "MovieClip(root).gotoAndStop(2);" but it doesn't work.

2

2 Answers

0
votes

try it

MovieClip(this.parent).gotoAndStop(2);

or

MovieClip(stage).gotoAndStop(2);

however,in this site you should find hundreds questions that help you solve your problem for questions like this

0
votes

Try exportRoot.gotoAndStop(2);