title: Exclude array items from their counterparts
body: <p>I'm working on a tournament that pits each fighter against 5 others. For this I have two arrays, playerArray and opponentArray, each containing the same six character types.</p>
  
  <p>When matching them up in the tournament, I'd like to prevent them from fighting their own type, that is for example, I don't want Rogue vs Rogue matchups.</p>
  
  <p>Is this done somehow with splice?</p>
  
  <pre><code>var playerArray:Array = ["Fighter", "Ranger", "Wizard", "Rogue", "Cleric", "Sorcerer"];
  var opponentArray:Array = ["Fighter", "Ranger", "Wizard", "Rogue", "Cleric", "Sorcerer"];
  
  charSel.addEventListener(MouseEvent.CLICK, matchups);
  
  function matchups(event:MouseEvent){
  for (a = 0; a &lt; 6; a++){        // for each character
      trace ("\n=== " + playerArray[a] + " fights ===\n");
      for (b = 0; b &lt; 5; b++){    // fight each opponent
          trace (playerArray[a] + " vs " + opponentArray[b]);
      }
  }
  </code></pre>
  
  <p>}</p>
  
  <p>Brand new to this. Thanks for any help!</p>