title: Check if movieclip is inside another movieclip [AS3]
body: <p>I need help creating a function that will check if a movieclip is inside another movieclip in actionscript 3.0. I created a movieclip called MyImage, which is dragged around by the user on top of another movieclip called BannerStage. When the user stops dragging MyImage, the function should return true or false, true if MyImage is inside of BannerStage and false if all corners of MyImage are outside of BannerStage.</p>
  
  <p>Thanks in advance.</p>
  
  <p>EDIT:</p>
  
  <p>My Solution:
  <pre><code>var inter = firstClip.getRect(this).intersection(secondClip.getRect(this));
  if ((inter.width*inter.height) == 0) {
      return false;
  } else {
      return true;
  }
  </pre></code></p>