# ContextMenu won't work with the word "copy"

**URL:** https://forum.kirupa.com/t/contextmenu-wont-work-with-the-word-copy/202061
**Category:** flash
**Created:** [September 27, 2006, 12:29pm UTC](https://forum.kirupa.com/t/contextmenu-wont-work-with-the-word-copy/202061 "2006-09-27T12:29:44Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Flash\_Test](https://avatars.discourse-cdn.com/v4/letter/f/848f3c/32.png) [@Flash\_Test](https://forum.kirupa.com/u/Flash_Test)
#### Post date: [September 27, 2006, 12:29pm UTC](https://forum.kirupa.com/t/contextmenu-wont-work-with-the-word-copy/202061/1 "2006-09-27T12:29:44Z")

</div>

I don’t get it.  
This following codes won’t work,

```auto
this.createTextField("news_txt", this.getNextHighestDepth(), 10, 10, 320, 240);
news_txt.border = true;
news_txt.wordWrap = true;
news_txt.multiline = true;
news_txt.text = "To see the custom context menu item, right click (PC) or ";
news_txt.text += "control click (Mac) within the text field.";
var menu_cm:ContextMenu = new ContextMenu();
menu_cm.customItems.push(new ContextMenuItem("Copy Link", doResize));

function doResize(obj:TextField, item:ContextMenuItem):Void {
    // "Resize" code here
    trace("you selected: "+item.caption);
}
news_txt.menu = menu_cm;

```

where as this would work:

```auto
this.createTextField("news_txt", this.getNextHighestDepth(), 10, 10, 320, 240);
news_txt.border = true;
news_txt.wordWrap = true;
news_txt.multiline = true;
news_txt.text = "To see the custom context menu item, right click (PC) or ";
news_txt.text += "control click (Mac) within the text field.";
var menu_cm:ContextMenu = new ContextMenu();
menu_cm.customItems.push(new ContextMenuItem("_Copy Link", doResize));

function doResize(obj:TextField, item:ContextMenuItem):Void {
    // "Resize" code here
    trace("you selected: "+item.caption);
}
news_txt.menu = menu_cm;

```

where the only difference is:  
menu\_cm.customItems.push(new ContextMenuItem(“Copy Link”, doResize));  
and this:  
menu\_cm.customItems.push(new ContextMenuItem("[COLOR=Red]\_[/COLOR]Copy Link", doResize));

I was just trying to get a “Copy link” when the user clicks on a link.

Thanks in advance.
