Succede ad esempio quando tot è ancora "undefined". Prova con:
codice:loadMovie("img/"+this.categoria+r+".jpg", this.foto); onEnterFrame = function () { tot = foto.getBytesTotal(); car = foto.getBytesLoaded(); if (tot == car && this.barra._yscale>98) { foto._visible = 1; this.barra.na = 0; this.percentuale._visible = 0; delete (onEnterFrame); } else if(tot > 4){ this.percentuale._visible = 1; foto._visible = 0; this.barra.nys = Math.round((car/tot)*100); this.percentuale.perc = Math.round((car/tot)*100)+"%"; this.percentuale._y = (this.barra._y-this.barra._height)-10; }

Rispondi quotando