# Next frame and previous frame buttons

**URL:** <https://forum.kirupa.com/t/next-frame-and-previous-frame-buttons/84603>\
**Category:** Uncategorized\
**Created:** [March 29, 2005, 2:02am UTC](https://forum.kirupa.com/t/next-frame-and-previous-frame-buttons/84603 "2005-03-29T02:02:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dxyner](https://avatars.discourse-cdn.com/v4/letter/d/4bbf92/32.png) [@Dxyner](https://forum.kirupa.com/u/Dxyner)\
**Post date:** [March 29, 2005, 2:02am UTC](https://forum.kirupa.com/t/next-frame-and-previous-frame-buttons/84603/1 "2005-03-29T02:02:19Z")

</div>

I’ve got most of the details of my new site figured out but my next frame and previous frame buttons aren’t working quite right.

```auto
on (release) {tellTarget("/content")
 if (this._currentframe == this._totalframes) { gotoAndStop(1); } else { nextFrame(); } }  

```

and

```auto
on (release) {tellTarget("/content")
if (this._currentframe == 1) { gotoAndStop(this._totalframes); } else { prevFrame(); } }  

```

The buttons don’t work consistently in the first lable, and on the following lables they go forward and back but don’t infact loop back to frame one or the last frame.

Please take a look and help. Thanks

[[color=#003399]http://dxyner2000.com/flash\_page/portfolio.html[/color]](http://dxyner2000.com/flash_page/portfolio.html)  
page

[[color=#003399]http://dxyner2000.com/flash\_page/portfolio.fla[/color]](http://dxyner2000.com/flash_page/portfolio.fla)  
file
