title: How do you remove a movieclip that is the target of a mouse event?
body: <p>In my document class, I generate a bunch of movieclips, then position them within their own class file. What I'd like to happen is that when I touch the movieclips with the mouse, they get removed, and the score count has a one point increase. How do you remove a specific movieclip from the canvas, when it triggers a mouse event? Heres what I've tried so far, neither removeChild or removeMovieClip worked:</p>
  
  <pre><code>   public class Pong extends MovieClip
      {
          public var points:int=0;
          public var timer:Timer=new Timer(100);
          public function Pong()
          {
              // constructor code
              timer.addEventListener(TimerEvent.TIMER, tick);
              addEventListener(MouseEvent.MOUSE_OVER,score);
              timer.start();
          }
  
          public function tick(TimerEvent)
          {
              var clikBloc:clik= new clik();
              addChild(clikBloc);
          }
          public function score(evt:MouseEvent):int
          {
              trace(evt.target);
              points++;
              return (points);
              removeChild(evt.target);
              removeMovieClip(evt.target);
          }
  </code></pre>