# gotoAndStop() issue, Please help

**URL:** <https://forum.kirupa.com/t/gotoandstop-issue-please-help/227659>\
**Category:** flash\
**Created:** [June 1, 2007, 1:01am UTC](https://forum.kirupa.com/t/gotoandstop-issue-please-help/227659 "2007-06-01T01:01:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BetaWar](https://avatars.discourse-cdn.com/v4/letter/b/e79b87/32.png) [@BetaWar](https://forum.kirupa.com/u/BetaWar)\
**Post date:** [June 1, 2007, 1:01am UTC](https://forum.kirupa.com/t/gotoandstop-issue-please-help/227659/1 "2007-06-01T01:01:50Z")

</div>

Okay, so I have a script that I am currently working on, the only problem is that it doesn’t change frame when clicked (like it should).

Here is my AS

```auto
play_pause_mc.onPress=function(){
 if(netStream.play){
  this.gotoAndStop("pause");
  netStream.pause();
 }
 else{
  this.gotoAndStop("play");
  netStream.play();
 }
}

```

[FONT=Courier New][/FONT]

I have both the keyFrames labeled what I want them to be (play, and pause) and it is supposed to change them with the script, but it isn’t. Does anyone know why this is or a way to prevent it from happening?
