Hello,
I have a Flash 8 movie where I need to have a movie clip that will periodically appear on stage in certain frames. After reaching a frame containing the movie clip -the movie clip needs to time out/wait for five seconds before it plays.
What ActionScript would accomplish this? Should the ActionScript be located in the first frame of the movie or embedded within the movie clip?
I attempted to use the following code within the movie clip and although it worked to control the movie clip, it interfered with cue point .flv goToAndStop functions on the main timeline:
function wait() {
stop();
var myInterval = setInterval(function () {
play();
clearInterval(myInterval);
}, 5*1000); // stop for 5 seconds
}
wait();
Thanks!
James