# Pause and play sound -movie clip-

**URL:** <https://forum.kirupa.com/t/pause-and-play-sound-movie-clip/152771>\
**Category:** Uncategorized\
**Created:** [June 27, 2005, 9:42am UTC](https://forum.kirupa.com/t/pause-and-play-sound-movie-clip/152771 "2005-06-27T09:42:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lulux](https://avatars.discourse-cdn.com/v4/letter/l/74df32/32.png) [@lulux](https://forum.kirupa.com/u/lulux)\
**Post date:** [June 27, 2005, 9:42am UTC](https://forum.kirupa.com/t/pause-and-play-sound-movie-clip/152771/1 "2005-06-27T09:42:13Z")

</div>

hi…  
I created a movie clip which pause and play the animation. This is the action script attached to the movie clip

on(release){

if(moviePlay == true){ //movie is already playing.  
this.stop(); //this or what ever the movie name is.  
moviePlay = false;  
}else{  
this.play(); //once again this or whatever the movie name is.  
moviePlay = true;  
}  
}

i would like to attach a sound (mp3) to this movie clip. When the movie clip plays the sound plays and pauses when it pauses.

tahnks!

:pleased:
