Preloader problems

Ok so I have a big swf to load so thought I’d make up a preloader to load the file externally then dissappear when the file loaded. The loader works fine and cycles through to 100% and then the external file loads but the preloader doesn’t go away, it just stays sat in the middle of the page. Here is my AS code:

stop();
this.myBookHolder_mc.loadMovie(“ecat_test3.swf”);
this.myPreloader_mc.onEnterFrame = function() {
var l = _parent.myBookHolder_mc.getBytesLoaded();
var t = _parent.myBookHolder_mc.getBytesTotal();
if (l>=t && t>0) {
delete this.onEnterFrame;
this._visible = false;
} else {setLoaded();}
};

function setLoaded(){
var l = this.myBookHolder_mc.getBytesLoaded();
var t = this.myBookHolder_mc.getBytesTotal();
var percent = Math.round(l/t*100);

this.myPreloader_mc.loading_txt.text = percent+"%";
this.myPreloader_mc.circle_mc._rotation += 12;
}

What is the problem?

Any help appreciated as I’m on a deadline with this.

The 2 lines under the if statement don’t seem to work. With _visible = false; the preloader doesn’t appear at all.

Help.

I’m using Flash 8, output settings are for FlashPlayer 6, AS2.

Andy