Results 1 to 2 of 2

Thread: remove Event Listener Proxy from EventBus

  1. #1
    Join Date
    Dec 2009
    Posts
    10

    Default 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
    -----------
    pix303

  2. #2
    Join Date
    Dec 2008
    Location
    Brussels
    Posts
    407

    Default 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

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •