hi there,
got stuck on preloader.
my code :
onEnterFrame = function() {
var isLoaded = 1;
var loadedCount = 0;
var init = (transparency)? 0 : 1;
for(var k=init;k<pageClips.length;k++) {
for(m=0;m<pageOrder.length;m++) {
var p = eval(pageClips[k]+".p"+(m+1));
if(p.getBytesLoaded() == p.getBytesTotal() && p.getBytesTotal()>100) {
isLoaded*=1;
loadedCount++;
} else {
isLoaded*=0;
}
}
}
if(isLoaded) {
play();
sound_mc._x =460;
sound_mc._y =330;
sound_mc.loadMovie("sound.swf");
porto_mc._x =460;
porto_mc._y =50;
porto_mc.loadMovie("porto.swf",1);
delete onEnterFrame;
}
loadedText.text = Math.floor(loadedCount/pageClips.length)+" of "+pageOrder.length+" pages loaded";
}
I am loading 6 pages ( pageClips ).
So far preloader display status for pages 1 to 6.
How can i show percent display for all pages.
As well as scale bar based on loading .
That will be like cache.
Is that possible ?