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?
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();
}