title: Objects keep disappearing, even though the HitTest object is removed
body: <p>I have been trying to create a game in actionscript 3, but am stuck on one problem for the past 4 hours.
  Every time you press a key a block appears, color depends on which key you press, when enemies hit that block they dissapear. I made it so that the enemies get removed through removeChild and the block itself dissapears after 1 second, but the problem is that after the block gets removed the enemies still die, even though the block isn;t visible anymore, so here I am.</p>
  
  <p>I use this code in Vechtblok.as (This is the block that appears to kill enemies), I add this code by adding a eventListener to a timer named sterf, this is the function:</p>
  
  <pre><code>public function gaWeg(e:TimerEvent):void
      {
          blok.parent.removeChild(blok);
      }
  </code></pre>
  
  <p>In Vijand.as (The enemy class) I have this code for them to dissapear, I give the enemies this code through adding an eventListener:</p>
  
  <pre><code>public function aanval(e:Event):void
      {
          if(hitTestObject(Vechtblok.blok))
          {
             teken.removeEventListener(Event.ENTER_FRAME, beweegHor);  
             trace(String(watbenik));
             teken.parent.removeChild(teken);
  
             //removeChild(Vechtblok.blok);
          }
  
      }
  </code></pre>
  
  <p>I think the error should be there somewhere, but my head hurts too much from the time I spend on trying to fix it.</p>
  
  <p>Thanks in advance and sorry for my broken English.
  Cheers.</p>