开发者

AS3 - Copy image to clipboard

开发者 https://www.devze.com 2023-03-19 18:57 出处:网络
How to copy an 开发者_JAVA技巧image in AS3 to the clipboard? For text it works but I can\'t find a way to copy an image.

How to copy an 开发者_JAVA技巧image in AS3 to the clipboard? For text it works but I can't find a way to copy an image.

System.setClipboard("my text")


You cannot. From the docs:

Parameters

string:String — A plain-text string of characters to put on the system Clipboard, replacing its current contents (if any).

However, with Air you can use: Clipboard.setData() instead.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号