Announcement Announcement Module
Collapse
No announcement yet.
remove Event Listener Proxy from EventBus Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • remove Event Listener Proxy from EventBus

    Hi there

    how can i remove a proxy listener from the EventBus created by marked a method of a prototype object with [EventHandler (name=...)] metadata?

    I try

    PHP Code:
    var mi:MethodInvoker = new MethodInvoker();
    mi.target this;
    mi.method "onResult";
    EventBus.removeEventListenerProxymyTypemi ); 
    but it seems not work and the method still get called

    Thanks in advance

  • #2
    new method on Eventhandler processor

    hey there,

    I've added two methods to the EventHandlerMetadataPostProcessor:

    Code:
    public function removeEventListener(eventName:String, handler:Function = null):void;
    public function removeEventClassListener(eventClass:Class, handler:Function = null):void;
    These can be used to unhook automatically added events. These methods are untested at the moment, so I'd appreciate any news on issues you might have with them.

    Changes are all in the latest SVN trunk.

    cheers,

    Roland

    Comment

    Working...
    X