My app creates a large number of 'particles' that migrate towards a central object. I want the particles to be removed once they touch the central object and I must have the wrong syntax, but can't find specifically what I need when running a forum search. Here's what I got:

PHP Code:

function moveParticle(e:Event):void{
  ...
  ...
  ...
  if (
e.target.hitTestObject(celesOrb)){
    
trace("IF statement has been hit");
    
//this IF statement is tracing this, so I know it's not being skipped over
    //This is where I can't figure out what syntax I need to remove the particles. Here's a few examples of what I've tried to no avail://
    
stage.removeChild(e.target);
    
stage.removeChild(this[e.target]);
    
stage.removeChild(e.target.name);
    
stage.removeChild(this[e.target.name]);
    
this.parent.removeChild(this);
    
parent.removeChild(this);
    
stage.removeChild(this);
    
removeChild(this);
    
removeChild(e.target);
    
//None of these removed the particles as they register hitTest.
  
}

I can post more script if it's necessary, but as a person who also helps folks on the Newbies board, I know how frustrating it is to rummage through someone's code, so I'm pretty sure this is all that you need to know >.< I may be wrong, just let me know.