title: Actionscript 3.0 Splice/RemoveChild issue
body: <p>I have rocks and enemy ninjas moving off the screen. The ninjas are supposed to disappear after being hit by a shuriken once, however they are taking two hits to disappear, although the shurikens disappear every time fine. The code is nearly identical for the shurikens and enemy ninjas, however the ninjas don't seem to work properly. I also get the occasional ninja getting stuck somewhere on the screen and shurikens pass through it.</p>
  
  <pre><code>    //If a rock moves off the screen, it is spliced.
      if (rock[j].x &lt;= -301){
          removeChild(rock[j]);
          rock.splice(j, 1);
          rockNum--;
      }
  }
  
  for (var q=shurikens.length - 1; q &gt;= 0; q--){
      for (var w=enemy.length - 1; w &gt;= 0; w--){
          //If the shurikens hit the ninjas.
          if ((shurikens[q]).hitTestObject(enemy[w])){
              removeChild(enemy[w]);
              enemy.splice(w, 1);
              ninjaNum--;
              removeChild(shurikens[q]);
              shurikens.splice(q, 1);
              break;
          }
      }
  }
  </code></pre>
  
  <p>}</p>