I have a custom collection object that fires events when items are added, removed and modified.
What I would like to do is each time an item is added, my collection object will discover the events for that item and will create listeners for each event that it finds.
This way the collection object can listen to the events for each item it contains. If an item in the collection fires an event the collection can then fire its own event to bubble that item's event up.
It other words I have collections that contains collections that contains collections and I want to pass events up from a lower collection up to a higher collection till it reaches the top most parent object.
What's a good way to do this?
<edit>I forgot to mention that I am using 2.0 and so I have to wire this up myself.