Playing frames (images) with XML

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

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