如何将功能侦听器附加到 ActionScript 3 中的剪贴板粘贴事件?
How to attach functioning listener to Paste from ClipBoard event in ActionScript 3?
关于 InteractiveObject 上的粘贴事件的 Adobe Livedocs 页面有这样的注释:
TextField objects do not dispatch clear
, copy
, cut
, paste
, or
selectAll
events. TextField objects always include Cut, Copy, Paste,
Clear, and Select All commands in the context menu. You cannot remove
these commands from the context menu for TextField objects. For
TextField objects, selecting these commands (or their keyboard
equivalents) does not generate clear
, copy
, cut
, paste
, or selectAll
events. However, other classes that extend the InteractiveObject
class, including components built using the Flash Text Engine (FTE),
will dispatch these events in response to user actions such as
keyboard shortcuts and context menus.
然而我们找不到任何支持"Paste"事件的InteractiveObject
,包括Sprite
、SimpleButton
、TextLine
。有人知道 other 类 Adobe 在这一段中谈论的是什么吗?
在这里回答我自己的问题。
SimpleButton
终于成功了。可能是我第一次做错了。
关于 InteractiveObject 上的粘贴事件的 Adobe Livedocs 页面有这样的注释:
TextField objects do not dispatch
clear
,copy
,cut
,paste
, orselectAll
events. TextField objects always include Cut, Copy, Paste, Clear, and Select All commands in the context menu. You cannot remove these commands from the context menu for TextField objects. For TextField objects, selecting these commands (or their keyboard equivalents) does not generateclear
,copy
,cut
,paste
, orselectAll
events. However, other classes that extend theInteractiveObject
class, including components built using the Flash Text Engine (FTE), will dispatch these events in response to user actions such as keyboard shortcuts and context menus.
然而我们找不到任何支持"Paste"事件的InteractiveObject
,包括Sprite
、SimpleButton
、TextLine
。有人知道 other 类 Adobe 在这一段中谈论的是什么吗?
在这里回答我自己的问题。
SimpleButton
终于成功了。可能是我第一次做错了。