Highlighted

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

New Here ,
May 01, 2019

Copy link to clipboard

Copied

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

Adobe Community Professional
Correct answer by kglad | Adobe Community Professional

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.

Views

174

Likes

Translate

Translate

Report

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

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

New Here ,
May 01, 2019

Copy link to clipboard

Copied

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

Adobe Community Professional
Correct answer by kglad | Adobe Community Professional

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.

Views

175

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
May 01, 2019 0
Adobe Community Professional ,
May 01, 2019

Copy link to clipboard

Copied

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 01, 2019 0
New Here ,
May 03, 2019

Copy link to clipboard

Copied

Thank you !!!

That's exactly what I was looking for!

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

Best regards

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 03, 2019 0
kglad LATEST
Adobe Community Professional ,
May 03, 2019

Copy link to clipboard

Copied

you're welcome.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 03, 2019 0