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.
I'm Thomas Viktil. I like to play with all sorts of things. And this is where I write about the things I learn while playing.
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.
Very nice piece of code. Thanks.
Excellent, thanks.
Perfect, thanks.
Many thanks. Really usefull
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.
Many thanks, very useful piece of code.