EventManager Class
Click here to read the blog post about the class.
Download EventManager on Google Code.
Published: September 30th, 2008 at 22:36
Categories:
Categories:
Click here to read the blog post about the class.
Download EventManager on Google Code.
5 comments to “EventManager Class”
October 26th, 2008 at 4:31 pm
[...] Miller wrote a great little class called EventManager. If used properly it keeps track of event listeners and their relationship to objects, easing a [...]
December 11th, 2008 at 9:33 pm
[...] major reason why some users of my EventManager class may see more memory leaks being shown than actual memory leaks is because EventManager stores all [...]
February 14th, 2009 at 3:50 pm
[...] EventManager是一个非常有用的第三方类, 使用hash表实现了面向实例的时间管理. 最终实现的removeAllListener方法对需要管理大量事件监听器的程序来说是个福音吧. [...]
August 5th, 2009 at 4:42 am
Thanks Danny,
This class works exactly to my requirements. I’m coding a Flash application that talks to a database via PHP. I have a custom Event class that fires when PHP returns a result from mySQL inside a class called Database. I was getting an endless loop, due to a complex series of events that all needed to be consecutively executed, but only after the database had returned a result for each SQL call. The problem was I couldn’t pin point where the rogue dispatcher was, but this class solved the problem by deleting all references to the previous listener on the Database class. A stable and functional class, works really well!
September 9th, 2009 at 11:29 pm
so great!ths