Skip to main content
Participant
August 19, 2018
Answered

Several movieclips on main timeline

  • August 19, 2018
  • 1 reply
  • 801 views

Revisiting an old animation that I created many years ago with Flash & AS2.

I have several movieclips linked to the main parent timeline with a stop() action on each frame.

On each movieclip child timeline I have an action layer with a keyframe on the last frame to go to the next movieclip.

for example: _root.gotoAndStop(2)

How can I get this to work in Animate CC 2018 using AS3?

I tried this on the last frame of the first movie clip :

     MovieClip(root).mc_1.gotoAndStop(2);

then

     MovieClip(root).mc_2.gotoAndStop(3);

etc etc but

I have just started using Animate CC and not familiar with AS3 at all.

The animation is output to HTML5 Canvas.

This topic has been closed for replies.
Correct answer kglad

MovieClip(root).gotoAndStop(2) would be the direct conversion of your example as2 to as3.

1 reply

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
August 19, 2018

MovieClip(root).gotoAndStop(2) would be the direct conversion of your example as2 to as3.

Known Participant
August 25, 2020

how is this cod in html5?

Known Participant
August 26, 2020

var total = 2; //DOM

HOW DO I GET INTO A MOVIECLIP?

this.parent.texto.text = this.parent.total;

Why isn't it working?