PDA

View Full Version : DANGER!!! BUG preloader!


Profeta
04-23-2002, 07:50 PM
Linux and netscape (or mozilla, konqueror.. ecc ecc..),
can't look at my 2 website with this preload:

car = _root.getBytesLoaded();
tot = _root.getBytesTotal();
perc = int(car/tot*100)+"%";
avan = int(car/tot*100);
setProperty ("corpo", _xscale, 100-avan);
setProperty ("cenere", _x, 284.8+(avan*1.5));
if (car == tot) {
gotoAndPlay (3);
}

or

if (_level0.getBytesLoaded() == _level0.getBytesTotal()) {
gotoAndPlay ("Scene 1", 1);
}


These are the websites: www.valletelesina.com and albatross.too.it

Can u help me.. and all linux users?

Profeta

Jesse
04-24-2002, 06:14 AM
I see no reason why that wouldn't work other than if the viewer hasn't got an up-to-date plugin. I've made a few minor changes all the same. This code must be in a loop to function correctly of course:
car = _root.getBytesLoaded();
tot = _root.getBytesTotal();
perc = Math.round((car/tot)*100)+"%";
avan = Math.round((car/tot)*100);
setProperty("corpo", _xscale, 100-avan);
setProperty("cenere", _x, Math.round(284.8+(avan*1.5)));
if (car == tot) {
gotoAndPlay(3);
}