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

Paste BitmapData from Clipboard in browser

Engaged ,
Jun 26, 2013 Jun 26, 2013

Copy link to clipboard

Copied

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

Views

525

Translate

Translate

Report

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