# Copy Text Command With (AS)

**URL:** <https://forum.kirupa.com/t/copy-text-command-with-as/30270>\
**Category:** flash\
**Created:** [September 6, 2003, 7:40am UTC](https://forum.kirupa.com/t/copy-text-command-with-as/30270 "2003-09-06T07:40:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![waffe](https://avatars.discourse-cdn.com/v4/letter/w/c37758/32.png) [@waffe](https://forum.kirupa.com/u/waffe)\
**Post date:** [September 6, 2003, 7:40am UTC](https://forum.kirupa.com/t/copy-text-command-with-as/30270/1 "2003-09-06T07:40:30Z")

</div>

I need to copy the text of a listbox. The only way this seems possible is to populate a text field with the contents of the list box, select the contents of the text field, and then copy the text.

I would like the whole prosess to be done in actionScript.

I can do the first two steps:

1. Populate text field with listbox text

2. Select text field text with setFocus command

3. Copy text field text into clip board as to be pasted elsewhere
