Preloaderssssssss

I am finishing the web site that I was working for so long.
Mainly I am loading an external movies in a nlank mc. Each of these movies has a preloader on the first frame and the content in the second.
Now I have a big problem my preloader want work, when the site is uploaded on a server. Only diplays at the end when the movie is loaded This is the code that I am using for the prloader:

#initclip
_global.preload = function() {
};
preload.prototype = new MovieClip();
// load variables
preload.prototype.onLoad = function() {
_root.stop();
};
preload.prototype.onEnterFrame = function() {
if (this.barStuff.loadingBar._xscale<100) {
this.barStuff.loadingBar._xscale = (_root.getBytesLoaded()/_root.getBytesTotal())*100;
} else if (this.barStuff.loadingBar._xscale>=100) {
this._alpha -= this.fIn;
if (this._alpha<=0) {
this.barStuff.removeMovieClip();
_root.gotoAndPlay(2);
}
}
};
// assign object to class
Object.registerClass(“preload”, preload);
#endinitclip
stop();

Is this something to do with as2 or flash player7 that the preloader want work.
thanks
goctala