# Next frame but not previous?

**URL:** <https://forum.kirupa.com/t/next-frame-but-not-previous/84073>\
**Category:** flash\
**Created:** [March 24, 2005, 1:09pm UTC](https://forum.kirupa.com/t/next-frame-but-not-previous/84073 "2005-03-24T13:09:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![innoxist](https://avatars.discourse-cdn.com/v4/letter/i/a88e4f/32.png) [@innoxist](https://forum.kirupa.com/u/innoxist)\
**Post date:** [March 24, 2005, 1:09pm UTC](https://forum.kirupa.com/t/next-frame-but-not-previous/84073/1 "2005-03-24T13:09:48Z")

</div>

I have a movie, in which there are buttons labelled “previous frame” and “next frame”. The code for “previous frame”:

\*\*on(release) {  
gotoAndPlay(\_currentFrame-1)  
}

\*\*The code for “next frame” is the same, except changing the minus sign to a plus sign. However, only “next frame” works. Anyone can help?
