Not much to see here...
A friend asked for a snippet of code to count down mins:secs
var interval:Number
var seconds = 90; // one min and 30 secs
function countDown() {
seconds--
mins = Math.floor( seconds / 60 ) //calc mins left
//calc secs left and stick a 0 in if less then 10 (prettier)
secs = seconds % 60 < 10? 0 + "" + seconds % 60:seconds % 60
if (seconds == 0) {//stop timer if done
clearInterval(interval)
}
trace( mins + ":" + secs ); //do something with output
}
//call our function every second
interval = setInterval(countDown,1000)