Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • EspaƱol
      • FranƧais
      • PortuguĆŖs
  • ę—„ęœ¬čŖžć‚³ćƒŸćƒ„ćƒ‹ćƒ†ć‚£
  • ķ•œźµ­ ģ»¤ė®¤ė‹ˆķ‹°
Locked
0

Paste BitmapData from Clipboard in browser

Engaged ,
Jun 26, 2013 Jun 26, 2013

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);

TOPICS
Air beta
563
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines