title: Trying to remove child on mouseover
body: <p>I am not new to programming but I decided to learn Flash for fun this summer. I have a program that is printing Circles as children and I want it so when the user hovers over a certain circle it will remove that child. Pseudo code in case you don't get what I'm saying:</p>
  
  <pre><code>if ( mouse.x = onCircle &amp;&amp; mouse.y = onCircle){
    removeChild(thatCircle);
  }
  </code></pre>
  
  <p>The problem is I don't know how to find what that specific child is and how to remove it.</p>
  
  <p>here is my code so far:</p>
  
  <pre><code>//Import
  import flash.utils.*;
  
  //Vars
  var circle:Shape = new Shape(); // The instance name circle is created
  var alive;
  alive = "true";
  var challange;
  challange = 1;
  var ogtimer = setInterval(showCircle,1000*challange);
  var circlesOnScreen: int;
  circlesOnScreen = 0;
  var cycles : int;
  cycles = 0;
  var base : int;
  base = 0;
  
  function showCircle(){
  
      if (circlesOnScreen &lt; 14){
          //Variables
          var ranX:Number = Math.ceil(Math.random()*475);
          var ranY:Number = Math.ceil(Math.random()*790); 
  
          var circleSpriteVar:circleSprite = new circleSprite();
          addChild(circleSpriteVar);
          circleSpriteVar.x = ranX;
          circleSpriteVar.y = ranY;
  
  
          circlesOnScreen = circlesOnScreen + 1;
          cycles = cycles + 1;
  
  
          /*if (mouseisover circle){
  
              circle.removeChildAt(0)
          }*/
  
  
          if (cycles &gt; 3){
              base = cycles * 1.15
              challange = base / 10
          }
      }else{
          gotoAndStop(3)
          }
  }
  </code></pre>