Copy Text Command With (AS)

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