# Proper use of \_currentframe

**URL:** https://forum.kirupa.com/t/proper-use-of--currentframe/202428
**Category:** Uncategorized
**Created:** [October 1, 2006, 4:40am UTC](https://forum.kirupa.com/t/proper-use-of--currentframe/202428 "2006-10-01T04:40:01Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jim\_wnt](https://avatars.discourse-cdn.com/v4/letter/j/97f17d/32.png) [@jim\_wnt](https://forum.kirupa.com/u/jim_wnt)
#### Post date: [October 1, 2006, 4:40am UTC](https://forum.kirupa.com/t/proper-use-of--currentframe/202428/1 "2006-10-01T04:40:01Z")

</div>

I inherited a project that needs two buttons that act like the “next chapter” buttons on a dvd player. I thought the code would be simple:

```auto
on (release){

gotoAndPlay(_currentframe +20);

}

```

But all this does is bring it back to the beginning of the timeline. All I want is it to advance 20 frames on the main timeline.
