Need a little help please

Hello everybody,

I have just completed this tutorial http://www.kirupa.com/developer/mx/photogallery.htm and I need to advance it a little bit but I am not too sure how :}. I would like to have the photos playing all the time and then when the user clicks on the buttons, the movie would stop and possibly when the user leaves the frame it would start playing again. I tried clear interval but I am not too sure how to use it and where to put it in that complex code.

If anyone has any ideas, I would appreciate it if you could help. Thank you!