countdown timer....


hi,

i have timer counts backwards , when reaches 0 performs other actions (such go different screen). counting down not problem, when reaches 0 wont anything, ive been fiddling while , cant work out....anyone got ideas. code on main timeline dynamic textfield on stage (called mytime).

thanks....

hi,

guess it's typo: if (myseco unds <= 0) should if (myseconds <= 0).
the interval keeps on running, it's better delete when reaches 0:
function wait() {
myseconds--;
if (myseconds <= 0) {
trace("times up");
clearinterval(mytime);
}
}
mytime = setinterval(wait, 1000);

hth,
blemmo


More discussions in ActionScript 1 and 2


adobe

Comments

Popular posts from this blog

Convierte tu Raspberry en un NAS. Firmware fvdw-sl 15.3 - Raspberry Pi Forums

How to format a Get Request

avrdude: verification error, first mismatch at byte 0x0000 0x0c != 0x62