Forum Replies Created

  • Michael Nguyen

    November 30, 2009 at 11:17 pm in reply to: 5 Minute Countdown

    this one

    rate = -1;
    clockStart = 300;

    function padZero(n){
    if (n < 10) return "0" + n else return "" + n
    }

    clockTime = Math.max(clockStart + rate*(time - inPoint),0);

    t = Math.floor(clockTime);
    min = Math.floor((t%3600)/60);
    sec = Math.floor(t%60);
    min + ":" + padZero(sec)

  • Michael Nguyen

    November 30, 2009 at 10:29 pm in reply to: 5 Minute Countdown

    hi,

    I tried using this code but it seems its limited to an hour. i am trying to do a 2 hour countdown. is there something else i need to change besides the seconds?

    -mike

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy