# Got to nextFrame when video finishes

**URL:** <https://forum.kirupa.com/t/got-to-nextframe-when-video-finishes/34177>\
**Category:** Uncategorized\
**Created:** [October 29, 2003, 11:26am UTC](https://forum.kirupa.com/t/got-to-nextframe-when-video-finishes/34177 "2003-10-29T11:26:57Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![FlashDeano](https://avatars.discourse-cdn.com/v4/letter/f/35a633/32.png) [@FlashDeano](https://forum.kirupa.com/u/FlashDeano)\
**Post date:** [October 29, 2003, 11:26am UTC](https://forum.kirupa.com/t/got-to-nextframe-when-video-finishes/34177/1 "2003-10-29T11:26:57Z")

</div>

I have looked through the forums but can not find an answer to what I am sure is a simple question.

I have a video clip, saved as a .swf

I call the swf in a MovieClip with  
[AS]loadMovie(“door.swf”,this);[/AS]  
This MovieClip is on frame 3 of the timeline and I do not want to progress to frame 4 until the video finishes (about 5 seconds).

I can not seem to work out how to do this.

Please give me some pointers as to where I may find the answer.

Thanks

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 29, 2003, 1:08pm UTC](https://forum.kirupa.com/t/got-to-nextframe-when-video-finishes/34177/2 "2003-10-29T13:08:35Z")

</div>

have you tried the very simple solution of just inserting as many keyframes as it takes until 5 secs are over between frame 3 and 4?

[like this (gif screenie)](http://mitglied.lycos.de/wardema/stoff/timeline_50_frames.gif)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 29, 2003, 1:15pm UTC](https://forum.kirupa.com/t/got-to-nextframe-when-video-finishes/34177/3 "2003-10-29T13:15:46Z")

</div>

Put a stop action at frame three of your main timeline, and at the last frame of your video swf, place \_root.gotoAndPlay(4) 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 29, 2003, 1:20pm UTC](https://forum.kirupa.com/t/got-to-nextframe-when-video-finishes/34177/4 "2003-10-29T13:20:06Z")

</div>

Thanks to both of you.

I actually worked this out after hours of trial and error by putting the \_root.gotoAndPlay(4) code in my movie swf.

Thanks for taking the time to help.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 29, 2003, 4:45pm UTC](https://forum.kirupa.com/t/got-to-nextframe-when-video-finishes/34177/5 "2003-10-29T16:45:55Z")

</div>

I thought I had this sorted but …

I have now progressed to frame 6 where I load another video clip in a .swf.

This also has the last frame with actionscript as follows  
[AS]stop();  
\_parent.gotoAndPlay(7);[/AS]

but when the movie plays and gets to frame 6, it does not show the video and goes straight to frame 7.

Please show me the error of my ways.

Thanks

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 29, 2003, 4:49pm UTC](https://forum.kirupa.com/t/got-to-nextframe-when-video-finishes/34177/6 "2003-10-29T16:49:33Z")

</div>

Are you sure there is a stop action at the 6th frame of the main timeline ?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 29, 2003, 5:01pm UTC](https://forum.kirupa.com/t/got-to-nextframe-when-video-finishes/34177/7 "2003-10-29T17:01:20Z")

</div>

absolutley positive, just went and removed and re-entered the stop(); code.

I am totally confused.

Because I used the \_parent.gotoAndPlay line before, can I use it again?

I have even tried to play the same video clip swf in case this was the swf was at fault but that does the same, just goes to frame 7.

Any ideas?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 29, 2003, 5:03pm UTC](https://forum.kirupa.com/t/got-to-nextframe-when-video-finishes/34177/8 "2003-10-29T17:03:03Z")

</div>

Try using \_root. If that doesn’t help, can I see your files ?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 29, 2003, 5:12pm UTC](https://forum.kirupa.com/t/got-to-nextframe-when-video-finishes/34177/9 "2003-10-29T17:12:48Z")

</div>

I have tried \_root and still the same.

I am grateful for your help.

With the video swf it is too large to include

Thanks

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 29, 2003, 5:59pm UTC](https://forum.kirupa.com/t/got-to-nextframe-when-video-finishes/34177/10 "2003-10-29T17:59:28Z")

</div>

All sorted now.

The problem was related to another piece of code in the same frame, applied to another MovieClip, which moved the movie to the next frame before the video was loaded.

Thanks for helping

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 29, 2003, 6:30pm UTC](https://forum.kirupa.com/t/got-to-nextframe-when-video-finishes/34177/11 "2003-10-29T18:30:14Z")

</div>

Glad you got it working 🙂
