Skip to main content
Inspiring
June 27, 2013
Question

Paste BitmapData from Clipboard in browser

  • June 27, 2013
  • 0 replies
  • 595 views

Is is possible to paste BitmapData from the clipboard when using the browser? When I look at the  reference to the general clipboard it says the following properties "alive", "canReadContents" and "canWriteContents" are true. The formats array shows one entry for air:bitmap but when I try to access the data it returns null.

Code: 

           var clipboard:Clipboard = Clipboard.generalClipboard;           

           trace("Formats: " + clipboard.formats.join(","));

           var value:* = clipboard.getData(ClipboardFormats.BITMAP_FORMAT, ClipboardTransferMode.CLONE_ONLY);

This topic has been closed for replies.