Hi I am facing same problem with my site, could you help me please ???
Hi, I am working on Ac3, and making a preloader here, but when I upload it to server it shows only white page with 4 dots custome loader which I haven't created once the site loaded for fully it flashes my preloader for a second and than my site will run for rest pages. I can't figure it out form where this custom preloader coming and why my preloader flashes at the end. here is my code for your reference :
stop();
this.addEventListener(Event.ENTER_FRAME, loading);
function loading(e:Event):void {
var total:Number = this.stage.loaderInfo.bytesTotal;
var loaded:Number = this.stage.loaderInfo.bytesLoaded;
bar_mc.scaleX = loaded/total;
loader_txt.text = Math.floor((loaded/total)*100)+ "%";
if (total == loaded) {
play();
this.removeEventListener(Event.ENTER_FRAME, loading);
}
}
Please help me, Thanks.