# Movie loop until a button is pressed

**URL:** <https://forum.kirupa.com/t/movie-loop-until-a-button-is-pressed/272713>\
**Category:** Uncategorized\
**Created:** [October 7, 2008, 10:26pm UTC](https://forum.kirupa.com/t/movie-loop-until-a-button-is-pressed/272713 "2008-10-07T22:26:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ndt2000](https://avatars.discourse-cdn.com/v4/letter/n/d26b3c/32.png) [@ndt2000](https://forum.kirupa.com/u/ndt2000)\
**Post date:** [October 7, 2008, 10:26pm UTC](https://forum.kirupa.com/t/movie-loop-until-a-button-is-pressed/272713/1 "2008-10-07T22:26:10Z")

</div>

ok, my problem is that I want an intro-movie to loop until I press a button to play another movie (start-movie), but the intro-movie should stil play until it’s finished and then go to the start-movie instead of looping again.  
I don’t know too much about the script-commands, so I have embedded the movies in the timeline instead of using instances and use commands like “gotoAndPlay(“frame”, 1);” at the end of the intro-movie.  
Is there a command to tell the intro movie it should play until it’s finnished and then go to start-movie?
