title: How to properly use hitTest between bitmapData and an object?
body: <p>I have converted a PNG into a bitmap, then converted that into bitmapData.</p>
  
  <p>I have a object called <code>_player</code>, and I wish to add collision detection, however I can seem to get it to work.</p>
  
  <p>my code is:</p>
  
  <pre><code>if(bmd1.hitTest(new Point(_player.x, _player.y))){
  trace("hit");
  }
  </code></pre>
  
  <p>bmd1 is my <code>bitmapData</code>,<code>_player</code> is the object is wish to test against.</p>
  
  <p>I am getting the following error:</p>
  
  <pre><code>1136: Incorrect number of arguments, Expected 3
  </code></pre>
  
  <p>I have looked around but cannott find what argument I am missing</p>
  
  <p>Any ideas?</p>
  
  <p><strong>Update</strong></p>
  
  <p>I have tried </p>
  
  <pre><code>if(bmd1.hitTest(new Point(_player.x, _player.y), 50, _player)){
  trace("hit");
  }
  </code></pre>
  
  <p>with no joy</p>
  
  <p><strong>Update 2</strong></p>
  
  <p>Sorry, I should mention that the reason for me taking this approach is that I have a PNG, with transparent areas, I need to test for collisions in the <em>non-transparent</em> areas, which is why I was using this approach</p>
  
  <p>I have a PNG, i import that and convert to bitmap, then convert to <code>bitmapData</code></p>
  
  <p>I maybe doing this completely wrong. Could you show me where the problem lies?</p>