Flash Countdown

Out of context: Reply #5

  • Started
  • Last post
  • 9 Responses
  • MX_OnD0

    here for the critique of all cleverClogs..

    If it can be did better let me know.

    var myTotalSeconds:Number = 300;

    function setTimeText(secondsNow:Number)
    {
    var mySeconds:Number = myTotalSeconds%60;
    var myMinutes:Number = Math.floor(myTotalSeconds/60);
    var myTimeText:String = myMinutes + ":" + mySeconds;
    myMinutesText_txt.text = myMinutes;
    mySecondsText_txt.text = mySeconds;
    myTotalSeconds--;
    }

    setInterval( setTimeText, 1000, myTotalSeconds);

    stop();

View thread