title: How to HitTest several objects at the same time in AS2.0?
body: <p>So I am making a game on AS2.0 where you control a square you can move and you are supposed not to touch any of the walls or else the level resets andyou go back to the initial position. I've managed to do it, but I have to make an If for each wall and it would be an eternal work when I reach the bigger levels, even if I copied/pasted. Is there any way of hittesting several objects at the same time? 
  Thank-you
  If you need it, here's my code :D</p>
  
  <pre><code>on(keyPress "&lt;Left&gt;") {
      this._x -= 5;
  }
  on(keyPress "&lt;Right&gt;") {
      this._x += 5;
  }
  on(keyPress "&lt;Down&gt;") {
      this._y += 5;
  }
  
  on(keyPress "&lt;Up&gt;") {
      this._y -= 5;
  }
  onClipEvent(EnterFrame) {
      if (_root.square.hitTest(_root.wall)) {
          _root.touch._Alpha = 100;
          this._x = _root.x0;
          this._y = _root.y0;
      }
      if (_root.square.hitTest(_root.wall1)) {
          _root.touch._Alpha = 100;
          this._x = _root.x0;
          this._y = _root.y0;
      }
      if (_root.square.hitTest(_root.wall2)) {
          _root.touch._Alpha = 100;
          this._x = _root.x0;
          this._y = _root.y0;
      }
      if (_root.square.hitTest(_root.goal)) {
          _root.gotoAndStop(3);
      }
  }
  </code></pre>
  
  <p>it is made on the Square's actions.</p>