# AS2 Sounds play once while repeating the animation clip

**URL:** <https://forum.kirupa.com/t/as2-sounds-play-once-while-repeating-the-animation-clip/330445>\
**Category:** flash\
**Created:** [January 23, 2013, 7:51am UTC](https://forum.kirupa.com/t/as2-sounds-play-once-while-repeating-the-animation-clip/330445 "2013-01-23T07:51:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bracelett](https://avatars.discourse-cdn.com/v4/letter/b/ac8455/32.png) [@bracelett](https://forum.kirupa.com/u/bracelett)\
**Post date:** [January 23, 2013, 7:51am UTC](https://forum.kirupa.com/t/as2-sounds-play-once-while-repeating-the-animation-clip/330445/1 "2013-01-23T07:51:45Z")

</div>

I want my sound play only once, I make 3 buttons which the enter, repeat intro and obcourse the play and stop button on the other side.On the 1 and 2nd frame on my timeline i put the preloader so the animation start in frame 3.  
My only problem is once I click the repeat intro, the sounds play again and sometimes it overlaff the sound to the previous music. I have already on and off buttons so what i want is if I click the repeat intro i want only animation will play the sounds will continue playing…here is my code in the repeat intro button:if anyone have an idea to fix this kindly help me. many thanks!  
I attached my swf output.

on (release){  
gotoAndPlay(3);  
stopAllSounds();  
}
