# Wait till movieclip gets to particular frame then play another section of movieclip

**URL:** <https://forum.kirupa.com/t/wait-till-movieclip-gets-to-particular-frame-then-play-another-section-of-movieclip/250082>\
**Category:** flash\
**Created:** [January 25, 2008, 10:33am UTC](https://forum.kirupa.com/t/wait-till-movieclip-gets-to-particular-frame-then-play-another-section-of-movieclip/250082 "2008-01-25T10:33:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sargeonline](https://avatars.discourse-cdn.com/v4/letter/s/d78d45/32.png) [@sargeonline](https://forum.kirupa.com/u/sargeonline)\
**Post date:** [January 25, 2008, 10:33am UTC](https://forum.kirupa.com/t/wait-till-movieclip-gets-to-particular-frame-then-play-another-section-of-movieclip/250082/1 "2008-01-25T10:33:00Z")

</div>

Hi,

I’m trying to reconstruct [http://www.kswissfreerunning.com/AU/](http://www.kswissfreerunning.com/AU/) with movies of my own.

Basically I have an array that contains the letters the user enters and I have the movie in a separate moviecilps with labels representing the letters.

I have a (what I think) logical set of code here to run through each letter in the user enters:

```auto
for(var k=0; k < letterArray.length; k++){
 movie_mc.gotoAndPlay(letterArray[k]);
  }
    

```

The problem is that it will only play the last letter the user enters. How am I able to make my flash wait till it gets to the end of a section of the movieclip, then play the next one, without it rushing to go straight to the last letter.

My pseudocode looks like this:

For the length of the array  
play the next letter  
\*\*when that letter movie gets to the end  
\*\*play the next letter

Thanks in advance.
