# clearInterval question and sbeener's photogallery

**URL:** <https://forum.kirupa.com/t/clearinterval-question-and-sbeeners-photogallery/69636>\
**Category:** flash\
**Created:** [November 6, 2004, 3:44am UTC](https://forum.kirupa.com/t/clearinterval-question-and-sbeeners-photogallery/69636 "2004-11-06T03:44:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![coche09](https://avatars.discourse-cdn.com/v4/letter/c/2bfe46/32.png) [@coche09](https://forum.kirupa.com/u/coche09)\
**Post date:** [November 6, 2004, 3:44am UTC](https://forum.kirupa.com/t/clearinterval-question-and-sbeeners-photogallery/69636/1 "2004-11-06T03:44:54Z")

</div>

hey guys, i’ve got 2 questions regarding clearInterval.  
first: i’ve got the slideshow (sbeener’s code) and placed the setInterval at the end (found scottys posting on this regard), it all works just fine BUT, what i need to do now is to stop the slideshow after i hit 1 specific button which is inside a movie clip in the main timeline. now, where in heavens do i place the code for the clearInterval, and do i have to give the setInterval an id? where do i do that in the code. i’ve been reading all the postings here but i cant figure it out!  
heres the photogallery :

[http://www.kirupa.com/developer/mx/photogallery.htm](http://www.kirupa.com/developer/mx/photogallery.htm)

the second question is basically the same but instead of using a button inside a movie clip is it possible to do it from a link in an externally loaded text? i dont know if this is pushing it lol

one of the observations id like to make is that my main timeline is just 1 frame long - it has several mcs inside a main one - i dont know if this has anything to do with it.  
once again, thanks a lot in advance and i really appreciate your help  
im all :ear:  
c
