# As3 button problem

**URL:** https://forum.kirupa.com/t/as3-button-problem/634802
**Category:** flash
**Created:** [June 19, 2016, 7:19pm UTC](https://forum.kirupa.com/t/as3-button-problem/634802 "2016-06-19T19:19:55Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![cagatay68](https://avatars.discourse-cdn.com/v4/letter/c/cab0a1/32.png) [@cagatay68](https://forum.kirupa.com/u/cagatay68)
#### Post date: [June 19, 2016, 7:19pm UTC](https://forum.kirupa.com/t/as3-button-problem/634802/1 "2016-06-19T19:19:55Z")

</div>

On my project I put a button on the frame2 that leads to frame50 where there is a movieclip on this frame.It works very well up to this point but when I closed the clip and go back to frame2 my project is not going forward with arrow buttons but going back with back button.If anyone help, I will appreciate it very much.

My arrow button codes like this:

next\_btn.addEventListener(MouseEvent.MOUSE\_DOWN, nextClick);  
function nextClick(event:MouseEvent):void{

```
nextFrame();

```

}

back\_btn.addEventListener(MouseEvent.MOUSE\_DOWN, backClick);  
function backClick(event:MouseEvent):void{

```
 prevFrame();

```

}

my close button codes are as follows:  
close\_btn.addEventListener(MouseEvent.MOUSE\_DOWN, closeClick);  
function closeClick(event:MouseEvent):void{  
gotoAndStop(2);  
}
