# Right click on button and show an image

**URL:** https://forum.kirupa.com/t/right-click-on-button-and-show-an-image/332360
**Category:** flash
**Created:** [May 8, 2014, 6:19pm UTC](https://forum.kirupa.com/t/right-click-on-button-and-show-an-image/332360 "2014-05-08T18:19:16Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![rhanna2](https://avatars.discourse-cdn.com/v4/letter/r/c89c15/32.png) [@rhanna2](https://forum.kirupa.com/u/rhanna2)
#### Post date: [May 8, 2014, 6:19pm UTC](https://forum.kirupa.com/t/right-click-on-button-and-show-an-image/332360/1 "2014-05-08T18:19:16Z")

</div>

Hi everyone,  
I was wondering if anyone knew how to use AS3 to allow a right click on a button whose instance name is go\_btn  
and navigate to the next frame where an image is displayed. I tried using thefollowing script:

go\_btn.addEventListener(MouseEvent.RIGHT\_CLICK, pasteInfo);  
function pasteInfo(e:MouseEvent):void  
{  
gotoAndPlay(“26”);  
}  
Flash gave error message 1119: Access of possibly undefined property RIGHT\_CLICK through a reference with static type Class.

Thanks,  
Robert.
