Remove Bitmap

Hi there

I’m new to AS3 so bare with me if my code is rough!

I’ve created the following code that takes a screen shot of my webcam and places it on the stage:

function ScreenShot():void {
    addChild(snapShot(LoadedCam)); 
    function snapShot(mc:DisplayObject):Bitmap {
        var m:Matrix = new Matrix(Flip,0,0,1,240,400);        
        var TempPhoto:BitmapData = new BitmapData(480,800,true,0x00000000);
        TempPhoto.draw(LoadedCam,m);
        var bmp:Bitmap = new Bitmap(TempPhoto);
        return bmp;
    }
}

This works fine, however I am unable to remove this bitmap from the following button code:

function RetakeButton(event:MouseEvent):void { 
    TempPhoto.dispose();
}

How do I remove the bitmap from the stage?

Thanks.