Yes, I have posted this topic but its really urgent that I find a solution.
When the countdown timer reaches :30 i need a warning to display and/or sound.
ADDthis line of code:
if (outputSec == 30) { warning.text=“Warning” }
the code is below
function countDown() {
if (Math.round(outputMin)==0 && Math.round(outputSec)==0 || chk==1){
clearInterval(timer);
}else {
if (outputSec != "00") {
outputSec = Math.round(outputSec) - 1;
//trace(output);
}else {
outputSec = 59;
outputMin = Math.round(outputMin) -1;
}
if (outputSec <= 9 && outputSec > 0) {
outputSec ="0" + outputSec;
}else if (outputSec == 0) {
outputSec = "00";
}
}
}
chk=0;
stop();