Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

html5, play(), stop(),gotoandPlay(), gotoAndStop() and timeline ?

Community Beginner ,
May 01, 2019 May 01, 2019

Hello !

I'im trying to create a timeline with  2 movieclips ( movieclips A and B for example)

Movieclip A is located at frame 1

Movieclip B at frame 5

There are 4 layers

1) for moveclip A

2)for movieclip B

3) for  labels

4) for actions

On layer 4 I put at frame 1 this.stop(); to stop the reading head for allowing it to play movieclip A

Movieclips A &B finish both with this.stop();

I woulld like to read now movieclip B at frame 5.

Who could help me to write the right Js code at  the right place ?

Thank you

Jack

474
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , May 01, 2019 May 01, 2019

i don't know what you mean by 'read now movieclip B', but assuming you want the playhead to go to frame 5 where movieclip B is located, on the last frame of movieclip A, place:

this.parent.gotoAndStop(5);  // noting the first frame is frame 0 and frame 5 looks to most people like frame 6.

Translate
Community Expert ,
May 01, 2019 May 01, 2019

i don't know what you mean by 'read now movieclip B', but assuming you want the playhead to go to frame 5 where movieclip B is located, on the last frame of movieclip A, place:

this.parent.gotoAndStop(5);  // noting the first frame is frame 0 and frame 5 looks to most people like frame 6.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
May 03, 2019 May 03, 2019

Thank you !!!

That's exactly what I was looking for!

I knew the parent' concept, and I didn't thought about !

Best regards

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 03, 2019 May 03, 2019
LATEST

you're welcome.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines