AS3 Snippet #1: Copy text to clipboard

Thomas Viktil

A useful little snippet of code for when you want to copy text to the clipboard:

System.setClipboard(source.text);

Where ‘source’ is the id of e.g. a text field.


7 Responses to “AS3 Snippet #1: Copy text to clipboard”

Leave a Reply