Code:
var cool_var;

panel countdisplay
{
digits(50,50,4,*,1,cool_var);
}

function TheCount()
{
while(cool_var != 17)
{
cool_var += 1;
wait(5000); // for test
}
//cool_var = 0;
return;
//exit;
}

function main()
{
countdisplay.visible = on;
on_enter=TheCount;
}




smile