puoi usare
a= setInterval(gotoAndPlay(numeroframe),2000);

e poi clearInterval(a);


2000 è il tempo in millisecondi