onSelfEvent (load) {
seconds=600;
x=0;
minute=01;
display="02:00"
}
onFrame (1) {
stop();
}
onFrame (2) {
clock=Math.floor(getTimer()/100)/10;
if (seconds==0) {
seconds=600;
minute--
}
if (x!=clock) {
seconds--
}
x=clock;
if (minute==00 && seconds==0) {
display = " 00:00";
gotoAndStop(4)
}
else {
display=minute add ":" add seconds/10
}
}
onFrame (3) {
prevFrameAndPlay();
}
onFrame (2){
clock=Math.floor(getTimer()/100)/10;
if (seconds==0) {
seconds=600;
minute--
}
if (x!=clock) {
seconds--
}
x=clock;
if (minute==01 && seconds==00) {
display_txt.textColor = 0xFF9900;
}}
当我注意到,当数字低于10时,例如:9:00我不能超过1位,我正在我的倒数计时器工作,我试图让它像这样09:00可以有人帮助我?