# Restrarting a sound on button click

**URL:** <https://forum.kirupa.com/t/restrarting-a-sound-on-button-click/6255>\
**Category:** Uncategorized\
**Created:** [October 2, 2002, 8:55pm UTC](https://forum.kirupa.com/t/restrarting-a-sound-on-button-click/6255 "2002-10-02T20:55:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![naaz](https://avatars.discourse-cdn.com/v4/letter/n/a8b319/32.png) [@naaz](https://forum.kirupa.com/u/naaz)\
**Post date:** [October 2, 2002, 8:55pm UTC](https://forum.kirupa.com/t/restrarting-a-sound-on-button-click/6255/1 "2002-10-02T20:55:45Z")

</div>

Hi,  
I have my sound file in my library. and i have placed it in one layer. Now i have two buttons to stop and start a movie. When i click the stop button my movie and sound both stops. I use the followng code  
on (release) {  
tellTarget (“bq”) { //bq is the movie clip  
stop();  
stopAllSounds();  
}  
stop();  
}

on (release) {  
tellTarget (“bq”) {  
play();  
}  
tellTarget (“music”) { //I dont know how to specify the  
//target for the music file.this gives  
[//error.I](https://error.I) even gave it a linkage in the lib  
//but that also did not worked  
play();  
}  
play();  
}

can anybody plaese help. I jsut want to know how to restart the sound.
