hi,
in the below code, if time_seconds==0;
then am calling function entername(); continuously,
how to restrict it to call the function only once..
thanks for any help..
var seconds = 30;
function count_down()
{
while(seconds > 0)
{
sleep (1);
seconds -= 1;
temp = int(seconds / 60); // compute the number of minutes
str_for_num(time_str, temp);
str_cat (time_str, " : ");
temp_seconds = seconds - temp * 60; // compute the remainder (the number of seconds)
str_for_num(temp_str, temp_seconds);
if (temp_seconds < 10)
{
str_cat (time_str, "0"); // add a zero (if needed)
}
str_cat (time_str, temp_str);
}
if(temp_seconds == 0)
{
time_txt.visible = off;
toggle_quiz_panels(0);
entername();
}
}