# How to make movie buttons jump in timeline

**URL:** <https://forum.kirupa.com/t/how-to-make-movie-buttons-jump-in-timeline/144042>\
**Category:** Uncategorized\
**Created:** [April 11, 2005, 7:58am UTC](https://forum.kirupa.com/t/how-to-make-movie-buttons-jump-in-timeline/144042 "2005-04-11T07:58:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pixelmage](https://avatars.discourse-cdn.com/v4/letter/p/e0b2c6/32.png) [@pixelmage](https://forum.kirupa.com/u/pixelmage)\
**Post date:** [April 11, 2005, 7:58am UTC](https://forum.kirupa.com/t/how-to-make-movie-buttons-jump-in-timeline/144042/1 "2005-04-11T07:58:07Z")

</div>

This is a bit of a newbie question:

I have given 5 frames on my timeline labels of (001,002,003,004,005)

I have a movie button and I want to tell that button that on release to go to the next label. And if it’s on a label, to go to the next… and if it’s on the last to loop around to the first. (kind of like a fast-forward button). I can make it go to the first, but not the sequential ones. I know this must be easy, but can’t get it to work. Anyone know?

This is what I have so far:

on (release) {  
gotoAndPlay(“001”);

if (true)  
gotoAndPlay(“002”);

but the code above just makes it jump to label “002”
