# Code help with "Photo Slideshow Using XML and Flash"

**URL:** <https://forum.kirupa.com/t/code-help-with-photo-slideshow-using-xml-and-flash/165627>\
**Category:** Uncategorized\
**Created:** [October 12, 2005, 5:40pm UTC](https://forum.kirupa.com/t/code-help-with-photo-slideshow-using-xml-and-flash/165627 "2005-10-12T17:40:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mpoyner](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/mpoyner/32/1827_2.png) [@mpoyner](https://forum.kirupa.com/u/mpoyner)\
**Post date:** [October 12, 2005, 5:40pm UTC](https://forum.kirupa.com/t/code-help-with-photo-slideshow-using-xml-and-flash/165627/1 "2005-10-12T17:40:31Z")

</div>

I have a question about the Kirupa tutoria[color=black]l [/color][size=2][color=black]"[font=Verdana]Photo [/font][/color][/size] [font=Verdana][size=2][color=black]Slideshow Using XML and Flash"[/color][/size][/font][color=black]  
[/color]  
It currently works great except that I would like for it to stop the slideshow rotation once the user presses one of the buttons. So, once they press a next or previous button, it no longer rotates, but they can still view the others by clicking on one of the buttons.

Is there any line of code I can add to the actionscript to make it stop at the point a button is pressed?
