AS3 Snippet #1: Copy text to clipboard
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.
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.
June 20th, 2008 at 20:11
Very nice piece of code. Thanks.
July 21st, 2008 at 03:10
Excellent, thanks.
October 19th, 2008 at 20:15
Perfect, thanks.
April 13th, 2009 at 19:11
Many thanks. Really usefull
May 22nd, 2009 at 23:53
I was using the Javascript version of it in my project, and that was pretty crappy, would bring a dozen warnings from the browser and all, but this one has just solved my problem.
Thank you Thomas.
September 14th, 2009 at 16:37
Many thanks, very useful piece of code.
May 29th, 2010 at 06:22
Thanks for the superb code. It saved my life!