I just went to alot of trouble to write a custom class to do what I need, but now I'm uncertain if it would be the best way.
Here's an extremely brief outline of what I built:
A custom class that allows any two or more objects to communicate with each other and pass parameters back and forth using the custom class itself as a proxy.
The reason I did this was two-fold:
1 - I wanted a central location for my instance references so I could garbage collect the contents of a menu, etc quickly with a single function call.
2 - I wanted to be able to map listeners to methods without being forced to use handlers with the specific names of their respective events.
My class works, and appears to work well, however, would it be wiser to try and achieve as much of this using EventDispatcher as possible without churning out lengthy custom code? Can this even be done?


Reply With Quote