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
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.
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.
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
Copy link to clipboard
Copied
you're welcome.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now