# Playing frames (images) with XML

**URL:** <https://forum.kirupa.com/t/playing-frames-images-with-xml/274673>\
**Category:** Uncategorized\
**Created:** [November 2, 2008, 5:31pm UTC](https://forum.kirupa.com/t/playing-frames-images-with-xml/274673 "2008-11-02T17:31:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hoodz](https://avatars.discourse-cdn.com/v4/letter/h/13edae/32.png) [@hoodz](https://forum.kirupa.com/u/hoodz)\
**Post date:** [November 2, 2008, 5:31pm UTC](https://forum.kirupa.com/t/playing-frames-images-with-xml/274673/1 "2008-11-02T17:31:38Z")

</div>

I am working on this XML slideshow tutorial, and it only goes to the next frame when you use the next button, how would i change it that it goes to thenext frame automaticly?

what I am trying to achieve is a turntable which gets the images of the frames out of an external folder throug XML, but I cant even get this to work

```auto
 
next_btn.onRelease = function() {
 nextSlideNode = currentSlideNode.nextSibling;
 if (nextSlideNode == null) {
  break;
 } else {
  currentIndex++;
  updateSlide(nextSlideNode);
  currentSlideNode = nextSlideNode;
 }
};

```
