# Custom Context Menu not showing up

**URL:** https://forum.kirupa.com/t/custom-context-menu-not-showing-up/171772
**Category:** flash
**Created:** [December 8, 2005, 1:42am UTC](https://forum.kirupa.com/t/custom-context-menu-not-showing-up/171772 "2005-12-08T01:42:01Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Acidtension](https://avatars.discourse-cdn.com/v4/letter/a/f475e1/32.png) [@Acidtension](https://forum.kirupa.com/u/Acidtension)
#### Post date: [December 8, 2005, 1:42am UTC](https://forum.kirupa.com/t/custom-context-menu-not-showing-up/171772/1 "2005-12-08T01:42:01Z")

</div>

Hi,

I have set a custom context menu in a .swf, and I can see it normally when previewing it on flash (Test Movie).

However, when I see it on my browser, I can’t see the custom options (only the reduced context menu with settings and about macromedia…)

On my first frame I have an actions layer with this (context + loader):

[AS]  
root\_cm = new ContextMenu();  
root\_cm.hideBuiltInItems();  
root\_cm.customItems.push(new ContextMenuItem(“Add to Favourites”, itemHandler1))  
root\_cm.customItems.push(new ContextMenuItem(“send e-mail”, itemHandler2));  
;  
function itemHandler1(obj:Object, item:ContextMenuItem) {  
getURL(“javascript:window.external.AddFavorite(location.href, document.title);”);  
}  
function itemHandler2(obj:Object, item:ContextMenuItem) {  
getUrl(“[mailto:emailIwant@domain.com](mailto:emailIwant@domain.com)”, “\_parent”);  
}  
\_root.menu = root\_cm;

bytes\_loaded = Math.round(this.getBytesLoaded());  
bytes\_total = Math.round(this.getBytesTotal());  
getPercent = bytes\_loaded/bytes\_total;  
this.loadBar.\_width = getPercent_307;  
this.loadText = Math.round(getPercent_100)+"%";  
if (bytes\_loaded == bytes\_total) {  
this.gotoAndPlay(3);  
}  
[/AS]  
[color=slategray][size=1](corrected the mailto command)[/size][/color]

which setting may be wrong so that it won’t work ?
