Come posso inserire un'attesa di 5 secondi in uno script?

Ho provato inserendo:


function wait() {
trace("The time is now !!");
}
myTimer = setInterval(wait, 5000);

ma non funziona