Hello
I found this tutorial on how to creat a preloader
"http://www.lukamaras.com/tutorials/preloaders/basic-loading-bar-prelo..."
I tried doing as mentioned in the tutorial but I have 2 problems..
1. My site loads before the preloader has completed. Click
http://img.photobucket.com/albums/v134/Dreamduster/problem.jpg to view it.
2. The preloader is always visible. I even added an extra line to the code
(in bold).
[Q]loadingBar.onEnterFrame = function() {
kBytesLoaded = this._parent.siteLoader.getBytesLoaded() / 1024;
kBytesTotal = this._parent.siteLoader.getBytesTotal() / 1024;
percentage = Math.round(kBytesLoaded / kBytesTotal * 100);
this._xscale = percentage;
if (percentage == 99) {
delete this.onEnterFrame;
[b]loadingBar._visible = false; [/b]
}
}[/Q]
Any idea how to make it work?
Thanks