I just found some improvements on my ListenerProxy-Class and packed them into a new “Version 2″. I also added a license-information. You can get the new Version 2 of ListenerProxy here.
Latest Tweets
@mesh a very good beer, indeed :) - posted on 12/05/2012 22:15:44
@DuncanConroy Flex SDK 4.1 compiled to target player 10.1 - posted on 10/05/2012 09:59:17
@MarcelKlammer playerversion? - posted on 10/05/2012 00:13:45
i'm still waiting for the first groundbreaking webgl-html5-game - posted on 10/05/2012 00:12:09
@DuncanConroy Nope, I used Socket recently with lots of close() and connect() and it worked with one instance. - posted on 09/05/2012 07:47:18
13:34, 27. October 2010wonderwhy-er /
Nice class, often using something like that myself as it is kind of quick to make such manager.
Always wanted but never got to making little bit more advanced version(though may be you have those features).
I wanted to make it so:
EventManager.registerEvent(target:Object,targetEvent:String,listener:Function,listenerOwner:Object=null,tags:Vector.=null);
So afterwords I can get/remove/disable events by all those params. For example I can try to disable all listeners for some owner. Or for some EventDispatcher. Or all marked with some Tag.
This would be a very powerful Event manager but I never got to making it probably just because I can solve my problems without it. But sometimes it would be useful. Like you could mark stuff connected to UI with UI tag and stuff related to say connection with IO and then will be able to disable them with small command.
13:42, 27. October 2010Daniel Bunte /
with the listenerproxy, you’re able to get/set/remove multiple listeners on multiple objects at once. i’ve never thought about tags or temporarily disabling eventlisteners, but that’s a good tip. i also thought about making this class public if the as3-community is interested in it :)