Skip to main content
Inspiring
July 28, 2008
Question

automatically jump to frame

  • July 28, 2008
  • 9 replies
  • 931 views
I'm trying to get my flash movie to play a movieclip and then automatically jump to another frame without clicking a button. Is that possible?
This topic has been closed for replies.

9 replies

kglad
Community Expert
Community Expert
July 29, 2008
you're welcome.
kglad
Community Expert
Community Expert
July 29, 2008
then the code i gave will work if you correct the typo.
Inspiring
July 29, 2008
Well thanks for trying to help. I copied and pasted your code and only changed the typo and it didn't work.

Oh well, I'm sure I'll figure out a way to do it.

Thanks anyway.
kglad
Community Expert
Community Expert
July 29, 2008
when i asked: what flash movie is "jumping"? the main timeline?

you said, "yes".

now, it appears TM_DrawClose_cl is the timeline that's supposed to jump to "box_frame". is that true? ie, TM_DrawClose_cl plays once and then it jumps to "box_frame" which is on TM_DrawClose_cl's timeline?
Inspiring
July 29, 2008
No, TM_DrawClose_cl is a movie clip that has it's own timeline, but the movie clip is located in a frame on the main timeline and box_frame is also a frame on the main timeline. I do want the flash movie to jump the main timeline. I want the main timeline to play the movieclip's timeline and then jump back to the frame "box_frame" which is a frame title on the main timeline.
kglad
Community Expert
Community Expert
July 29, 2008
i'm not sure you understand.

that code checks for the last frame of TM_DrawClose_cl to play. when that last frame is reached the root timeline jumps to "box_framer" - NOTE the typo. if TM_DrawClose_cl loops, then each time it plays its last frame the root timeline will jump to "box_framer".
Inspiring
July 29, 2008
I think I do understand what your code is supposed to do. It just isn't working for some reason.

It just repeats the movie clip over and over and doesn't jump to the frame that is supposed to.

When I put a stop(); on the last frame of the movie clip, it only plays the movie clip once and then stays on that frame and doesn't jump to the frame that it is supposed to.

Is there something else that I should put on the last frame of the movie clip that would keep it from looping, but not make the whole main timeline stop?
Inspiring
July 28, 2008
yes
kglad
Community Expert
Community Expert
July 28, 2008
:

Inspiring
July 29, 2008
Ok. Thanks again for your help. I feel like I'm getting closer.

So, with that code:

If there is a stop(); on the action layer in the last frame of the movie clip, then the movie clip plays but doesn't automatically jump to the frame (box_frame) I'd like it to when it's done playing.

If there is not a stop(): on the movie clip, then the movie clip keeps repeating and still doesn't automatically jump to the frame (box_frame) I'd like it to when it's done playing.

Does that make sense? Thank you again so much for taking the time to help!
kglad
Community Expert
Community Expert
July 28, 2008
what flash movie is "jumping"? the main timeline?
Inspiring
July 28, 2008
So you have 2 movie clips?

Right now, my movieclip, "TM_DrawClose_Cl" is the one that I want to finish playing before the flash movie automatically jumps back to the first frame, "box_frame"

Everything is located on the main timeline with one actions layer.

I'm sorry I'm confused! Thanks again for your help!
Inspiring
July 28, 2008
Right now I have the code attached to the main timeline in the actions layer. I have the movie clip on the main timeline too in another layer. It is named: "TM_DrawClose_cl". I just have the movie clip in a key frame on the main timeline.

Thanks again for your help!!
kglad
Community Expert
Community Expert
July 28, 2008
if the movie that needs to complete play before controlling TM_DrawClose_cl has name mc1, you can use:

kglad
Community Expert
Community Expert
July 28, 2008
yes. use the goto method just like you would in a button listener. you'll just need to apply it to the movieclip that you want to control and you'll need to execute it at the correct time.
Inspiring
July 28, 2008
Could you give me an example of that?

You don't have to apply it to a button click?

Thanks so much for the help! I really appreciate this. I'm in over my head!