title: AS3 - removeChild() removes everything from stage
body: <p>I'm working on a simple Flash game for school. In one level, multiple enemies spawn and the player is supposed to shoot them. I used removeChild() to get rid of the enemy that got shot, but when I click (hit) an enemy, everything on my stage gets removed; it goes completely blank.</p>
  
  <p>The function to populate my stage with enemies is the following: </p>
  
  <pre><code>    private function Game2():void{
      for (var i:uint=0; i&lt;50; i++) {
  
          var man:MovieClip = new man_mc();
          man.x=Math.random()*750;
          man.y=Math.floor(Math.random()*(70))+350;
          addChild(man);
          man.addEventListener(MouseEvent.CLICK, getroffen);
      }
  </code></pre>
  
  <p>function 'getroffen' checks if an enemy got hit:</p>
  
  <pre><code>public function getroffen(evt:MouseEvent):void{
              trace("hit");
              this.parent.removeChild(this);
  
  }
  </code></pre>
  
  <p>Kind of confused here as to why it removes everything on the stage instead of removing just the enemy I click on. Any help? Thanks alot.</p>