# XMl Slideshow with buttons

**URL:** <https://forum.kirupa.com/t/xml-slideshow-with-buttons/245960>\
**Category:** flash\
**Created:** [December 5, 2007, 9:45pm UTC](https://forum.kirupa.com/t/xml-slideshow-with-buttons/245960 "2007-12-05T21:45:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hex0](https://avatars.discourse-cdn.com/v4/letter/h/c37758/32.png) [@hex0](https://forum.kirupa.com/u/hex0)\
**Post date:** [December 5, 2007, 9:45pm UTC](https://forum.kirupa.com/t/xml-slideshow-with-buttons/245960/1 "2007-12-05T21:45:33Z")

</div>

Hello I followed the xml slide show tutorial here on the site, and wanted to add buttons to it.(I did the autoplay tutorial) I have the buttons working, but the autoplay feature seems not to be agreeing with the buttons whenever I press left or right arrows on the keyboard it goes to it, but then the autoplayer becomes erratic and suddenly goes to various frames at random.

I think the problem is that the timer which is set to 3000 miliseconds is not resetting. I was wondering how to reset this variable each time the user presses the left or right arrow.

any help is much appreciated. Thank you.
