How do i stop this movie

Hi,

I want to stop this movie clip in a certain time (say 3 seconds) 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

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.

  
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

  
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.

thanks for the quick reply

jason