# Navigating the timeline using labels?

**URL:** <https://forum.kirupa.com/t/navigating-the-timeline-using-labels/202316>\
**Category:** Uncategorized\
**Created:** [September 29, 2006, 4:24pm UTC](https://forum.kirupa.com/t/navigating-the-timeline-using-labels/202316 "2006-09-29T16:24:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![split67](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/split67/32/2089_2.png) [@split67](https://forum.kirupa.com/u/split67)\
**Post date:** [September 29, 2006, 4:24pm UTC](https://forum.kirupa.com/t/navigating-the-timeline-using-labels/202316/1 "2006-09-29T16:24:28Z")

</div>

I have a slideshow and am using “Interval” to advance the images. They fade in & out over 12 frames. I want to allow the user full control of the slideshow by providing movie playback controls. I have frame labels for each image in the timeline. Each image is labeled “image”. Providing a back and next button, how do I make the playhead jump to the prev/next image when the prev or next buttons are clicked? My code is below. Thank you for any help.

var myInterval = setInterval (nextSlide, 3000);

function nextSlide () {  
slideshow\_mc.play();  
}

next\_btn.onRelease = function() {

}

prev\_btn.onRelease = function() {

}

play\_btn.onRelease = function() {  
myInterval = setInterval (nextSlide, 3000);  
slideshow\_mc.play();  
}

pause\_btn.onRelease = function() {  
clearInterval(myInterval);  
slideshow\_mc.stop();  
}
