Subscribe to our newsletter:
- Questions
- How to use
Answers
topHow to use
To use, follow this 4 easy steps:
1) Install CountDown Timer Component and click reload on the component panel.
2) Drag the component from the component panel and drop it on the stage.
3) Give an instance name to the component.
4) Set component parameter; hour, minute, second. Each parameter's default value is 0
5) Attach the script to the button (see example below).
this.createTextField("my_txt", 1, 80, 60, 100, 100);
this.onEnterFrame = function() {
my_txt.text = mcTimer.hour+":"+mcTimer.minute+":"+mcTimer.second;
};
function gameOver() {
trace("game over!");
}
btnStart.onRelease = function() {
this._parent.mcTimer.startTimer("gameOver");
};
btnPause.onRelease = function() {
this._parent.mcTimer.pauseTimer();
};
btnPlay.onRelease = function() {
this._parent.mcTimer.resumeTimer();
};





help
and feedback
latest
news
latest
forum entries