# Custom ContextMenu on Dynamic Textfield

**URL:** <https://forum.kirupa.com/t/custom-contextmenu-on-dynamic-textfield/56871>\
**Category:** flash\
**Created:** [July 8, 2004, 12:19pm UTC](https://forum.kirupa.com/t/custom-contextmenu-on-dynamic-textfield/56871 "2004-07-08T12:19:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![peshay](https://avatars.discourse-cdn.com/v4/letter/p/e0b2c6/32.png) [@peshay](https://forum.kirupa.com/u/peshay)\
**Post date:** [July 8, 2004, 12:19pm UTC](https://forum.kirupa.com/t/custom-contextmenu-on-dynamic-textfield/56871/1 "2004-07-08T12:19:58Z")

</div>

is it possible to do a custom ContextMenu on a Dynamic Textfield? I want to keep the open and copy items but i want to add some extra stuff… I read the tutorial on contextmenus but cant figure this out. If this is not possible, is it possible to copy a string to the cache via Actionscript? as this is what im after really

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 8, 2004, 12:22pm UTC](https://forum.kirupa.com/t/custom-contextmenu-on-dynamic-textfield/56871/2 "2004-07-08T12:22:38Z")

</div>

Nope…, or at least not within the confines of Flash. The customized context menu only occurs clicking static parts of the field, where Flash is in control. You can’t do it.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 8, 2004, 1:24pm UTC](https://forum.kirupa.com/t/custom-contextmenu-on-dynamic-textfield/56871/3 "2004-07-08T13:24:14Z")

</div>

how about copying the string to cache?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 8, 2004, 5:09pm UTC](https://forum.kirupa.com/t/custom-contextmenu-on-dynamic-textfield/56871/4 "2004-07-08T17:09:03Z")

</div>

System.setClipboard()  
Availability  
Authoring: Flash MX 2004.

Playback: SWF files published for Flash Player 6 or later, playing in Flash Player 7 or later.

Usage  
System.setClipboard(string)

Parameters  
string A plain-text string of characters to place on the system clipboard, replacing its current contents (if any). If you pass a string literal, as opposed to a variable of type string, enclose the literal in quotation marks.

Returns  
A Boolean value of true if the text was successfully placed on the clipboard, false otherwise.

Description  
Method; replaces the contents of the system clipboard with a specified text string.
