Quote:
Originally Posted by cbkbud
(Post 1300084)
Out of curiosity ... what does that do?
|
It's a tree communicator. Basically...
There is a parent object, and child objects. You can attach an object to the parent object... When you trigger an event to the parent object, it sends it out to all children objects.
For instance...
If you have a house ( parent object ) and you have furniture in ( children objects ). Sadly, the house burns down, and everything in it. ( Event ). One way of doing this is house.trigger( "Event", "burnDown", 4 );
So every object in the house gets a object.onEventburnDown( 4 ); called.
|