Paste event for a DisplayObjectContainer not registered in AS3
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?
精彩评论