Removing children, or movieclips

Hi there,

I have a document class that populates the stage with 10 instances of a class (movieclip) every time I press the down arrow key. So Every time I hit it, it will add 10 more to the stage.

What I would like to do is build an up arrow key to clear everything off the stage. Once It is clear I can start hitting down arrow and layering the clips again.

I have the up arrow key working, but am not sure what to put inside it to clear the current clips.

Any help would be great!

By the way, the trace in the keyboard.DOWN gives back ‘Object BlueCircle’ if that helps.


package {
    import flash.display.Sprite;
    import flash.events.KeyboardEvent;
    import flash.ui.Keyboard;

 
    public class populate extends Sprite {
        
        public function populate() {
            stage.addEventListener(KeyboardEvent.KEY_DOWN, checkKeys);
        }
        
        function checkKeys (e:KeyboardEvent):void {
            if (e.keyCode==Keyboard.DOWN) {
                for (var i:int = 0; i < 10; i++) {
                    var newCircle:BlueCircle = new BlueCircle();
                    this.addChild(newCircle);
                    trace(this.addChild(newCircle));
                }
                
            } else if (e.keyCode==Keyboard.UP) {
                trace('this will get rid of the circles');
            }
        }
    }
}