# Flash CS3 nextFrame and prevFrame + error message

**URL:** <https://forum.kirupa.com/t/flash-cs3-nextframe-and-prevframe-error-message/254307>\
**Category:** flash\
**Created:** [March 10, 2008, 7:31pm UTC](https://forum.kirupa.com/t/flash-cs3-nextframe-and-prevframe-error-message/254307 "2008-03-10T19:31:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![spark067](https://avatars.discourse-cdn.com/v4/letter/s/4af34b/32.png) [@spark067](https://forum.kirupa.com/u/spark067)\
**Post date:** [March 10, 2008, 7:31pm UTC](https://forum.kirupa.com/t/flash-cs3-nextframe-and-prevframe-error-message/254307/1 "2008-03-10T19:31:28Z")

</div>

Hello everyone,

I have really simple question.  
Here is a link. [http://www.funrise.com/flash](http://www.funrise.com/flash)

Please click to facts on the menu.  
The next button is working but prev button is not working.  
Do you know why?

Here is the AS3.

* * *

stop();

## next\_btn.addEventListener(MouseEvent.CLICK, onNextButtonClicked); prev\_btn.addEventListener(MouseEvent.CLICK, onPreviousButtonClicked); function onNextButtonClicked(e:MouseEvent):void { if (this.currentFrame == totalFrames) { gotoAndStop(49); } else { nextFrame(); } } function onPreviousButtonClicked(e:MouseEvent):void { if (this.totalFrames == 70) { gotoAndStop(49); } else { prevFrame(); } }

Thanks,
