title: Accessing MXML components within ascript files
body: <p>How do I get round the following error: Access of undefined property pMatrixBack
  How do I access this component from within the ascript file?</p>
  
  <pre><code>// src/index.mxml
  
  &lt;s:Application&gt;
    &lt;s:Group id="iMatrix" width="100%" height="100%" dragEnter="WorkRows.acceptEnterHandler(event)" dragDrop="xyz.action(event)"&gt;
      &lt;assets:PMatrixBack id="pMatrixBack" width="100%" height="100%"/&gt;
    &lt;/s:Group&gt;
  &lt;/s:Application&gt;
  
  // src/ascript/xyz.as
  
  package xyz
  {
    static public function action(event:DragEvent):void
    {
      var bitmap:BitmapData = ImageSnapshot.captureBitmapData(pMatrixBack); //Error
    }
  }
  </code></pre>