getTimer and Sound problem

I’m about to tear my hair out over this one :a:, so please help!

I want a timer function to be tied to the sound, so that when the sound stops the movie goes to a new frame depending on:

 a) if they fail before end of sound it takes them to a **You Lose** frame
 b) if they succeed...**You Got it **frame
 
 this is the code I'm using on frame 2 where the sound is stored:
displayTime = 30; 
     	  countDown = function(message){
       
     		  displayTime--; 
     		  if (displayTime == 0){
       
     			  clearInterval(timer); 
     			  trace("Times Up!");
       
     		  }
       
     	  } 
     	  timer = setInterval(countDown, 1000);  
 Nice little AS, but I don't need the trace function, I'd like users to know! 
 
 Hope this makes sense!

I'd really appreciate a nudge in the right direction :bounce:
 
 Y