let's imagine this scenario:
we instantiate a certain number of instances of object A on the stage (_root) .. and we want each object to be receive a different value, and have that object do something with it
a real life example would be: create a client object and pass the client name as an argument to that object.
and let's assume that we have a complex class hierarchy that requires code optimization, which generally means that we need to know how to find the code without scrolling through a 5 page long classes.
for that, we can create an Event Manager class that listens to events from all objects in the structure and handles the calls and manages the data.
a simple example would be:
Read the rest of this entry »