# How do set a movie to play after 20 frames of starting another movie?

**URL:** <https://forum.kirupa.com/t/how-do-set-a-movie-to-play-after-20-frames-of-starting-another-movie/14863>\
**Category:** Uncategorized\
**Created:** [March 3, 2003, 7:46pm UTC](https://forum.kirupa.com/t/how-do-set-a-movie-to-play-after-20-frames-of-starting-another-movie/14863 "2003-03-03T19:46:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aerohaith](https://avatars.discourse-cdn.com/v4/letter/a/a9adbd/32.png) [@aerohaith](https://forum.kirupa.com/u/aerohaith)\
**Post date:** [March 3, 2003, 7:46pm UTC](https://forum.kirupa.com/t/how-do-set-a-movie-to-play-after-20-frames-of-starting-another-movie/14863/1 "2003-03-03T19:46:33Z")

</div>

well, as u guessed i am a beginner. but i’m trying to start a text movie after something like 20 frames through a sound file

how can tell flash to start the text movie to do that?

also i’m creating the text in swish, so i was wondering if i can include a sound file with the text in swish…is it possible ?

thanks people , u 've been great 🙂

---

<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:** [March 3, 2003, 7:53pm UTC](https://forum.kirupa.com/t/how-do-set-a-movie-to-play-after-20-frames-of-starting-another-movie/14863/2 "2003-03-03T19:53:18Z")

</div>

Use an if statement to detect what frame it is on.

```php
if (this._currentframe == 20){
 //do this
}

```

Where the //do this is, put the code that plays your other movie. I am not sure exactly hwo you have it set up so I don’t know exactly what do use.

---

<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:** [March 3, 2003, 8:50pm UTC](https://forum.kirupa.com/t/how-do-set-a-movie-to-play-after-20-frames-of-starting-another-movie/14863/3 "2003-03-03T20:50:59Z")

</div>

…or you can just put something like this in frame20 of your soundMC:

\_root.textMC.gotoAndPlay(2); //set your path and start code for text anim

when it hits frame 20, it’ll trigger your other animation…

-mojo
