title: 1061: Call to a possibly undefined method hitTestPoint through a reference with static type Class
body: <p>im trying to make collision detection in my game and the tutorial is using hitTestPoint, here is the part of the code that wont work if anyone can help. Ground is just a block movie clip and player is, well the player:</p>
  
  <pre><code>stage.addEventListener(Event.ENTER_FRAME, loop);
  
  function loop(e:Event):void
  {
      if (ground.hitTestPoint(borat.x + leftBumpPoint.x,borat.y + leftBumpPoint.y,true))
      {
          trace("leftBumping");
          leftBumping = true;
      }
      else
      {
          leftBumping = false;
      }
  
      if (ground.hitTestPoint(borat.x + rightBumpPoint.x,borat.y + rightBumpPoint.y,true))
      {
          trace("rightBumping");
          rightBumping = true;
      }
      else
      {
          rightBumping = false;
      }
  
      if (ground.hitTestPoint(borat.x + upBumpPoint.x,borat.y + upBumpPoint.y,true))
      {
          trace("upBumping");
          upBumping = true;
      }
      else
      {
          upBumping = false;
      }
  
      if (ground.hitTestPoint(borat.x + downBumpPoint.x,borat.y + downBumpPoint.y,true))
      {
          trace("downBumping");
          downBumping = true;
      }
      else
      {
          downBumping = false;
      }
  
  }
  </code></pre>
  
  <p>I keep on getting these errors:</p>
  
  <pre><code>Scene 1, Layer 'actions', Frame 1, Line 37  1061: Call to a possibly undefined method hitTestPoint through a reference with static type Class.
  
  Scene 1, Layer 'actions', Frame 1, Line 47  1061: Call to a possibly undefined method hitTestPoint through a reference with static type Class.
  
  Scene 1, Layer 'actions', Frame 1, Line 57  1061: Call to a possibly undefined method hitTestPoint through a reference with static type Class.
  
  Scene 1, Layer 'actions', Frame 1, Line 67  1061: Call to a possibly undefined method hitTestPoint through a reference with static type Class.
  </code></pre>
  
  <p>Thank you to anyone who took the time to read this!</p>