Loading bar disappear

when recover from masking, loading bar has to be appear till it reaches 100%, after that it has to disappear… this has to be done repeatedly… In the following code when it reaches 100%, loading bar remains in the stage, it is not disappear, i dont know wat is the error with this code.
If anybody knows pls rply me… Advance Thanks… :angel:
var picArray:Array = new Array();
var empty= this.createEmptyMovieClip(“empty”, this.getNextHighestDepth());
var picture_mc= empty.attachMovie(“picture”, “picture_mc”, empty.getNextHighestDepth(), {_x:300, _y:200});
picArray.push(picture_mc);
var camera_mc= this.attachMovie(“camera”, “camera_mc”, this.getNextHighestDepth(), {_x:250, _y:200});
var picCount:Number=0;
loading_mc._alpha=0;
camera_mc.onEnterFrame = function()
{
if(Key.isDown(Key.SPACE))
{
snapShot();
intervalId=setInterval(recover,1500);
}
}
function snapShot()
{
empty.setMask(camera_mc);

}
function loading()
{
empty.loadingBar_mc._visible=false;
clearInterval(loadInterval);
}
function recover()
{
empty.setMask(null);
var loadingBar_mc= empty.attachMovie(“loadingbar”, “loadingBar_mc”, empty.getNextHighestDepth(), {_x:camera_mc._x-50, _y:camera_mc._y+50});
loadInterval=setInterval(loading,1500);
clearInterval(intervalId);
}