I have used this method before to make a preloader. But this time for some reason the screen is blank until the movie is finished loading.
The bandwidth profiler says I am on frame 0.
function eventLoaderFrame (e:Event):void
{
if(boolLoaded==false){
var total:Number = this.stage.loaderInfo.bytesTotal;
var loaded:Number = this.stage.loaderInfo.bytesLoaded;
mc_preloader.txtLoader.text = Math.floor((loaded/total)*100)+ " %";
if (total == loaded){
boolLoaded = true;
this.removeEventListener(Event.ENTER_FRAME, eventLoaderFrame);
this.addEventListener ( Event.ENTER_FRAME,enterFrameHandler);
}
}
moveMc(mc_cloud);
moveMc(mc_cloud2);
moveMc(mc_cloud3);
moveMc(mc_cloud4);
moveMc(mc_cloud5);
moveMc(mc_cloud6);
}
I have been comparing this to another project (that uses the same code)and it loads fine in Simulate Download and BWProfiler says frame 1 while loading. There are no differences in the Public Settings, or any other settings I can seeā¦
what is up?