# More Help with my button

**URL:** <https://forum.kirupa.com/t/more-help-with-my-button/247473>\
**Category:** flash\
**Created:** [December 24, 2007, 5:27am UTC](https://forum.kirupa.com/t/more-help-with-my-button/247473 "2007-12-24T05:27:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shadoninja](https://avatars.discourse-cdn.com/v4/letter/s/71e660/32.png) [@Shadoninja](https://forum.kirupa.com/u/Shadoninja)\
**Post date:** [December 24, 2007, 5:27am UTC](https://forum.kirupa.com/t/more-help-with-my-button/247473/1 "2007-12-24T05:27:29Z")

</div>

Ok so basically I need to know what needs to be replaced with my button’s name (play) so that this script will go to the next frame when it is pressed:

```auto
 my_btn.addEventListener(MouseEvent.CLICK, onClick); 

```

```auto
 function onClick(event:MouseEvent):void {  

```

```auto
 this.nextFrame();  

```

```auto
 } 

```

And also I put in:

```auto
  Stop();  

```

at the beginning of my flash and it still keeps going through all the frames of my game even though that is supposed to stop it. what am I doing wrong Help greatly appreciated!
