How to remove child?

When beginning without any key pressed the ryustance_mc plays as it should.
When right or left key is pressed the ryuwalk_mc plays but the ryustance_mc plays at the background. How to remove it from the holder?
The thing is when I stop pressing any of the keys then ryustance_mc must play again.

function control(event:Event):void
{
if(rightKeyIsDown) {
holder_mc.addChild(ryuwalk_mc);
ryuwalk_mc.play();
holder_mc.x += speed;
}
if(leftKeyIsDown) {
holder_mc.addChild(ryuwalk_mc);
ryuwalk_mc.play();
holder_mc.x -= speed;
}
}

initializeGame();

[img]/uploads/default/5410/d54ca2b5c14af6bc.jpg[/img]


Please help me.
Thank You