Ho questo script per un preloader ma quando lo verifico Flash mi ritorna un errore alla linea perc = parseInt.....
Qualcuno saprebbe indicarmi il motivo di tale errore o una soluzione?
Grazie
Bubu
stop();
_root.onEnterFrame = function() {
car = this.getBytesLoaded();
tot = this.getBytesTotal();
perc = parseInt((car*100)/tot);
progres = perc+"% loaded";
//trasformo in KByte da byte
txtKB = int(car/1024);
txt1KB = int(tot/1024);
//trasformo in stringa
txt = String(txtKB);
txt1 = String(txt1KB);
//aggiungo il testo relativo
txtCar = txt+" Kb of";
txtTot = txt1+" Kb";
// frame = Math.round((car*73)/tot);
this.gotoAndStop(1);
if (car == tot) {
gotoAndPlay(2);
delete this.onEnterFrame;
}
};