# Sound problem any help please?

**URL:** <https://forum.kirupa.com/t/sound-problem-any-help-please/197054>\
**Category:** flash\
**Created:** [August 13, 2006, 7:19am UTC](https://forum.kirupa.com/t/sound-problem-any-help-please/197054 "2006-08-13T07:19:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nawaray](https://avatars.discourse-cdn.com/v4/letter/n/54ee81/32.png) [@nawaray](https://forum.kirupa.com/u/nawaray)\
**Post date:** [August 13, 2006, 7:19am UTC](https://forum.kirupa.com/t/sound-problem-any-help-please/197054/1 "2006-08-13T07:19:07Z")

</div>

hi,

i have this matching game that i created for kids…  
whenever the user matches the correct word to the correct picture there is a text box where it will display  
excellent, correct etc…

my problem is :  
when all the correct words have been matched to the correct pictures the text box will display  
excellent you have won

when this is displayed i want a clap sound to appear ,  
i tried this code but it diidn’t work  
any clue please?

```auto

allCorrect =0;
// check if all answers 
// are correct
firstSound.attachSound("clap");
_root.onEnterFrame= function(){
 if(_root.allCorrect==5){
 _root.endComment = "excellent you have won";
 
 }
  
} 
if( _root.endComment == "excellent you have won"){
 Sound.start(clap);
 
}
else {
   stopAllSounds();
}

```
