title: hitTest or hitTestObject to detect a collision with multiple objects in AS3?
body: <p>I'm working on a small game and I would like to detect if the player collided with one of the boxes that are placed on the stage.
  What is the best method to do this, <code>hitTest</code> or <code>hitTestObject</code>?
  My code:</p>
  
  <pre><code>var hitTestClips:Array = [smallbox, mediumbox, bigbox] //more to come
  
      var fps = 60;
      var moveTimer:Timer = new Timer(1000/fps);
  
      moveTimer.addEventListener(TimerEvent.TIMER, onMoveTimer);
      moveTimer.start();
  
      function onMoveTimer(e:TimerEvent){
      player.x += Math.round(1)
  
      for(var player:MovieClip in hitTestClips)
      {
        if(player.hitTest(this.x, this.y, true))
        {
          trace("HIT");
        }
      }
  
      }
  </code></pre>