# ContextMenu problem

**URL:** <https://forum.kirupa.com/t/contextmenu-problem/226949>\
**Category:** flash\
**Created:** [May 25, 2007, 8:58am UTC](https://forum.kirupa.com/t/contextmenu-problem/226949 "2007-05-25T08:58:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jasvarghese](https://avatars.discourse-cdn.com/v4/letter/j/a88e57/32.png) [@jasvarghese](https://forum.kirupa.com/u/jasvarghese)\
**Post date:** [May 25, 2007, 8:58am UTC](https://forum.kirupa.com/t/contextmenu-problem/226949/1 "2007-05-25T08:58:41Z")

</div>

Hai all,

in my flash file the context menu is not working…

```auto

function mySpin()
{
    webwasp.gotoAndPlay(2);
} // End of the function
var myContextMenu = new ContextMenu();
myContextMenu.hideBuiltInItems();
var spin = new ContextMenuItem("Spin Spin Spin!!!", mySpin);
myContextMenu.customItems.push(spin);
webwasp.menu = myContextMenu;
 

```

i am using this code…  
is there any publishing property should i change for that?

pls help me…
