# Preloaderssssssss

**URL:** <https://forum.kirupa.com/t/preloaderssssssss/143614>\
**Category:** Uncategorized\
**Created:** [April 7, 2005, 11:30am UTC](https://forum.kirupa.com/t/preloaderssssssss/143614 "2005-04-07T11:30:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![goctala](https://avatars.discourse-cdn.com/v4/letter/g/e56c9b/32.png) [@goctala](https://forum.kirupa.com/u/goctala)\
**Post date:** [April 7, 2005, 11:30am UTC](https://forum.kirupa.com/t/preloaderssssssss/143614/1 "2005-04-07T11:30:28Z")

</div>

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
