title: A question on capturing the button click event in ANOTHER mxml file
body: <p>this seems to be an interesting question to be discovered in Flex.</p>
  
  <p>I registered a very simple button event listener in A.mxml:</p>
  
  <pre><code>&lt;mx:Script&gt;&lt;![CDATA[
  
  import mx.controls.Alert;
  public function Handler():void
      {
        Alert.show('click event occured');
      }
  ]]&gt;&lt;/mx:Script&gt;
  
  
  &lt;mx:Button label="{resourceManager.getString('resources', 'button.startLab')}" 
          id="nextStepButton" click="Handler()" /&gt;
  </code></pre>
  
  <p>It works fine when clicking the button everytime.
  Now I want to have something interesting,that is,I want to capture this buttonClick Event in another mxml file,say B.mxml and do something in B.mxml instead of A.</p>
  
  <p>I am bit stuck on this,hope you could give me some hint and help,thanks a lot. </p>