# Right Click Menu problem

**URL:** <https://forum.kirupa.com/t/right-click-menu-problem/196019>\
**Category:** flash\
**Created:** [August 4, 2006, 5:12pm UTC](https://forum.kirupa.com/t/right-click-menu-problem/196019 "2006-08-04T17:12:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vinnieb](https://avatars.discourse-cdn.com/v4/letter/v/ba8739/32.png) [@vinnieb](https://forum.kirupa.com/u/vinnieb)\
**Post date:** [August 4, 2006, 5:12pm UTC](https://forum.kirupa.com/t/right-click-menu-problem/196019/1 "2006-08-04T17:12:40Z")

</div>

Hi, I’ve got a problem with fixing a right click menu. I made a tutorial some where on the web and I want to use the code to all my flashfiles. So now I’ve copied the layer from my tutorial file and paste on all my files. But now when I test them some work but others don’t work. Is there a problem I don’t know of. This is my code:

// Custom Flash Menu

function deadClick () {  
}

function gotoMySite () {  
getURL(“[http://www.mysite.com](http://www.mysite.com)”, “\_top”);  
}

var myMenu:ContextMenu = new ContextMenu();  
myMenu.hideBuiltInItems();

var copyrightNotice:ContextMenuItem = new ContextMenuItem(“Copyright © 2006 VinnieB”, deadClick);  
copyrightNotice.separatorBefore = true;  
var mySiteLink:ContextMenuItem = new ContextMenuItem(“[www.mysite.com](http://www.mysite.com)”, gotoMySite);

myMenu.customItems.push(mySiteLink, copyrightNotice);

\_root.menu = myMenu;
