Ik heb een preloader met onderstaande code, en dan zou hij daarna de site moeten weergeven, maar dat is dus het probleem, dat doet ie dus niet, alleen als je op enter drukt. Heeft iemand de oplossing??
lBytes = _root.getBytesLoaded();
tBytes = _root.getBytesTotal();
percentLoaded = Math.floor((lBytes/tBytes)*100);
loader.bar._xscale = percentLoaded;
loader.percent.text = percentLoaded+"% of "+Math.floor(tBytes/1024)+"K loaded.";
if (lBytes>=tBytes && tBytes>0) {
if (count>=0) {
gotoAndStop("main");
} else {
gotoAndPlay("scene2", "Home");
count++;
}
} else {
gotoAndPlay("preload");
}
lBytes = _root.getBytesLoaded();
tBytes = _root.getBytesTotal();
percentLoaded = Math.floor((lBytes/tBytes)*100);
loader.bar._xscale = percentLoaded;
loader.percent.text = percentLoaded+"% of "+Math.floor(tBytes/1024)+"K loaded.";
if (lBytes>=tBytes && tBytes>0) {
if (count>=0) {
gotoAndStop("main");
} else {
gotoAndPlay("scene2", "Home");
count++;
}
} else {
gotoAndPlay("preload");
}