Wait playhead for 5 second in a frame

Hi,

thanks for your time.

how will be actionScript for waiting the play head in a frame for 5 second ?

please help

Nasih

[AS]
if(myTimeLine._currentframe == myFrameNum){
waitingID= setInterval(stopInterval, 5000);
myTimeLine.stop();
}
stopInterval = function(){
clearInterval(waitingID);
myTimeLine.play();
}
[/AS]

SHO

Hi,

I got the idea now
thanks

U r welcome

odd, I tried your code and was unable to get it to work.

First I tried it with the script on the main timeline targeting the maintime line.

Then I tried it with in an onclipevent targeting the mc

any clue?