# Rewind and forward button navigation problem

**URL:** https://forum.kirupa.com/t/rewind-and-forward-button-navigation-problem/297420
**Category:** Uncategorized
**Created:** [October 1, 2009, 7:35pm UTC](https://forum.kirupa.com/t/rewind-and-forward-button-navigation-problem/297420 "2009-10-01T19:35:12Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![brown22](https://avatars.discourse-cdn.com/v4/letter/b/8c91f0/32.png) [@brown22](https://forum.kirupa.com/u/brown22)
#### Post date: [October 1, 2009, 7:35pm UTC](https://forum.kirupa.com/t/rewind-and-forward-button-navigation-problem/297420/1 "2009-10-01T19:35:12Z")

</div>

Hi guys,

I’m using CS4 with AS3 and have a little problem with my rewind and forward buttons. For the play and stop buttons it works fine with this script:

playButton.addEventListener (MouseEvent.CLICK, playButtonClick);

function playButtonClick (e:MouseEvent):void  
{  
play();

}

But then I tried this for the forward button:

forwardButton.addEventListener(MouseEvent.CLICK, forwardButtonClick);

function forwardButtonClick (e:MouseEvent):void  
{  
this.gotoAndPlay(this.currentframe + 50);

}

I get error messages.

All I need is to rewind and forward the movie about 50 frames and keep playing without stopping.

Any help would be appreciated,

thanks
