开发者

Paste event for a DisplayObjectContainer not registered in AS3

开发者 https://www.devze.com 2022-12-27 15:11 出处:网络
I have a display object container and I am trying to add a paste event to it. But the event is not being registered. The documentation at liveDocs mentions that classes that derive from Interactive ob

I have a display object container and I am trying to add a paste event to it. But the event is not being registered. The documentation at liveDocs mentions that classes that derive from Interactive objects can dispatch paste event but I dont understand why it wouldnt work开发者_高级运维 for me.

My app is not an AIR app, could it be a reason ?


The livedocs also say "TextField objects do not dispatch clear, copy, cut, paste, or selectAll events. [...] However, other classes that extend the InteractiveObject class, including components built using the Flash Text Engine (FTE), can dispatch these events."

I'm also looking for a Event.PASTE from a TextField but haven't found a work around yet.

Does your DisplayObject have focus? Does it receive other events, such as the Keyboard events?

0

精彩评论

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