I have a short little flash game. Music plays while the
player looks for hidden objects.
When they find all of the hidden objects a movie clip loads
to say "you win" and an applause.mp3 plays.
If they dont find all the objects in time at the end of the
times line "out of time you lose" shows.
**My problem is, when the person doesnt find all the objects
and it reaches the end of the timeline the "applause.mp3" still
plays. I have the "winner" movieclip set to be invisible until all
the objects are found but dont know how to keep the sound off.
here is the code I have:
// here I set the variables to mark if they are found
var object1Found = false;
var object2Found = false;
var object3Found = false;
var object4Found = false;
var object5Found = false;
var object6Found = false;
// here I put a function so I dont have to repeat the code
if (broccoliFound && meatFound && eggFound
&& mushFound && carrotFound &&
//right before the Winner movieclip on the timeline I have
winner._visible = false
**This is where my problem is. The Winner movieclip in
invisible but the "applause.mp3" is still playing