title: Event-based interaction between two custom classes
body: <p>I have such problem:
  I have 2 custom components, which have their own nesting hierarchy ... One is container for another. I have to "familiarize them" with each other. The way I'm trying to achieve that is using global events (one side is firing and the other one is catching):</p>
  
  <pre><code>Application.application.addEventListener("Hello", function (data:Event):void{
          // .. some actions
      });
  
  //and
  Application.application.dispatchEvent(new Event(Hello));
  </code></pre>
  
  <p>Everything is pretty good, but there's one thingy .. when I'm trying to catch the event, I can't access the class, who is catching it. E.g.:</p>
  
  <ol>
  <li>Container fires the event.</li>
  <li>Child caughts it.</li>
  <li>Then should be created the connection between container and it's child.</li>
  </ol>
  
  <p>BUT, the only thing I could acheive is passing a reference to the Container in the DynamicEvent. Is there any chance that I could access the child at the event-handler function.
  Or maybe there's more elegant way to solve this problem ...</p>
  
  <p>Any help would be greately appreciated :)</p>