September 26, 2008
Copy to Clipboard stopped working?

Here is a little info that could be interesting for all our Javascript and Ajax centered developers out there: as I just learned from our Aviary HTML guys there seems to be a pretty popular cross-browser compatible method out there that allows people to copy data to the clipboard by using a hidden Flash file to do the dirty work.

The bad news is that this nifty method will stop working as soon as your users upgrade to Flash Player version 10. In the new version copying to the clipboard is only allowed upon direct user interaction, meaning a mouse click on the SWF itself. A simple javascript call from the outside will not cut it. The only workaround I can think of is to create a small visible Flash button that you can place on the page.

If I wasn't on my way to Flash on the Beach this moment I'd love to provide you with a quick solution right here, but I'm pretty sure someone in the Flash community will volunteer to build a lightweight, stylable button that can be fed with dynamic data pretty soon.

Posted at September 26, 2008 08:36 PM | Further reading

Keith Peters and Lee Brimelow have already blogged about this issue:

A very good blog entry about the thoughts behind this issue

Posted by: Flo W. on September 26, 2008 10:02 PM

Thanks for the update. It looks though that they do not mention the clipboard changes but rather refer to the file upload - which is of course related.

Posted by: Mario Klingemann on September 27, 2008 08:35 AM

I've been complaining a bit about that : this is the kind of change that will break some apps without bringing "real" security.

Posted by: Nicolas on October 11, 2008 01:45 PM
Post a comment

Email Address:



Remember info?

Thank you!

Most Visited Entries
Sketches, Works & Source Code
In Love with
Powered by
Movable Type 2.661

© Copyright Mario Klingemann

Syndicate this site:
RSS 1.0 - RSS 2.0

Quasimondo @ flickr
Quasimondo @ LinkedIn
Quasimondo @ Twitter
Quasimondo @ Facebook
Quasimondo @ MySpace
Quasimondo is a Bright
Citizen of the TRansnational Republic
My other blog in german

My family name is written Klingemann,
not Klingelmann, Klingeman, Klingaman, Kingemann,
Kindermann, Killingaman, Klingman, Klingmann, Klingonman
Klingemman, Cleangerman, Klingerman or Kleangerman

profile for Quasimondo at Stack Overflow, Q&A for professional and enthusiast programmers