# How do i stop this movie

**URL:** https://forum.kirupa.com/t/how-do-i-stop-this-movie/61392
**Category:** Uncategorized
**Created:** [August 18, 2004, 4:55am UTC](https://forum.kirupa.com/t/how-do-i-stop-this-movie/61392 "2004-08-18T04:55:54Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![sinister\_design](https://avatars.discourse-cdn.com/v4/letter/s/b3f665/32.png) [@sinister\_design](https://forum.kirupa.com/u/sinister_design)
#### Post date: [August 18, 2004, 4:55am UTC](https://forum.kirupa.com/t/how-do-i-stop-this-movie/61392/1 "2004-08-18T04:55:54Z")

</div>

Hi,

I want to stop this movie clip in a certain time (say 3 seconds) [http://www.kirupa.com/developer/mx/perspective.htm](http://www.kirupa.com/developer/mx/perspective.htm)  
any ideas?

is it possible to have sound attached for say 2 seconds at the end?

thanks

Jason

---

<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: [August 18, 2004, 7:58am UTC](https://forum.kirupa.com/t/how-do-i-stop-this-movie/61392/2 "2004-08-18T07:58:06Z")

</div>

Paste this code after the one frame of MC …ie if you want to stop the movie in the 5th frame paste this code to 6th frame …'cause we’re using \_currentframe - 1 to check the loop.

```auto
  
if (start == undefned){
 start = getTimer ()/1000;
}
counter = getTimer ()/1000;
if (counter - start < 3){
 gotoAndPlay(_currentframe - 1);
}else {
 start = undefined;//By remove this else statement the interval no longer maintained.
}

```

To attach a sound first import the sound file that is WAV of MP3 to library not the timeline. Rightclick the file in the library and select linkage. Add a name for the sound file. That ID later use on code. Go the main frame and create sound object… Some thing like this

```auto
  
mysound = new Sound ();
mysound.attachSound ("thePrevioudIDname")
//to Play the sound 
//Your condition apply here when the sound start
mysound.start();

```

If u’ve any problem upload the file…i’ll correcti t for you.

---

<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: [August 18, 2004, 8:16am UTC](https://forum.kirupa.com/t/how-do-i-stop-this-movie/61392/3 "2004-08-18T08:16:21Z")

</div>

thanks for the quick reply

jason
