«

»

Simple Count Down Timer Actionscript 3

Just a simple count down timer, you can set the font type, size, and color for the timer. Set the counter in minutes, dispatch an event when the time runs out.
example use in timeline

import com.irzal.CounDownTimer;

var countDownTimer:CountDownTimer = new CountDownTimer();
var arialRounded:ArialRounded = new ArialRounded();

countDownTimer.fontSize = 12;
countDownTimer.font = arialRounded;
countDownTimer.fontColor = 0x0000FF;
countDownTime.counter = 1;
addChild(countDownTimer);
countDownTimer.start();

countDownTimer.addEventListener(CountDownTimer.TIMES_UP, timesUpHandler);

function timesUpHandler(e:Event):void
{
trace("times up");
}

For more detail about methods and properties see AS3Doc.

CountDownTimer (75)

Leave a Reply

Your email address will not be published.

*