Skip to main content
October 16, 2006
Question

setInterval issues...

  • October 16, 2006
  • 1 reply
  • 248 views
Hi,
I am trying to action script an image slide show to where the images are kind of rotating and timeline will stop on the image that is up front.
I'm just not sure how to code this.

I tried using this:

stop();
myInterval = setInterval(myPause,10000); //10000 is 10 seconds
myPause = function(){
_root.play();
clearInterval(myInterval);
}

But, it won't start playing at the end of the 10 sec.


any suggestions?

thanks,
hutch
This topic has been closed for replies.

1 reply

Inspiring
October 16, 2006
Try . . .

var myInterval:Number;

myInterval = setInterval(this, "myPause", 10000);

myPause = function(){
_root.play();
clearInterval(myInterval);
}

In this scenario, I believe that you should remove the 'stop();' command altogether . . . try it and see . . .
October 16, 2006
hmmm, no luck--won't stop. I have all of this in movie clip. I probably should have mentioned that earlier.