Popular Posts

Recent Comments

About

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.


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.



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

  1. Very nice piece of code. Thanks.


  2. Excellent, thanks.


  3. Perfect, thanks.


  4. Many thanks. Really usefull


  5. 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.


  6. Many thanks, very useful piece of code.


Post a Comment