PDA

View Full Version : How to make Timer to jump to next Event



bahattab
26-12-2008, 12:30 PM
How to make Timer to jump to next Event



//timer to jump to Event





function doElse()
{
play();

//getURL("http://www.google.com", "target");

clearInterval(myInterval);
}

myInterval = setInterval(doElse, 1000);





or







mySeconds=120;

function wait() {

if(mySeconds == 0) {
clearInterval(myTimer);
_parent.nextFrame();
}

mySeconds--;
}

myTimer = setInterval(wait, 1000);