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....
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
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
Post a Comment