Originariamente inviato da negatyve
Tanto per capire:
codice:
car = undefined;
tot = undefined;
trace(car / tot)
car = 1;
tot = undefined;
trace(car / tot)
nn vorrei approfittarne
, ma come dovrei comportarmi?
criminal script:
codice:
myLoadVars = new LoadVars();
myLoadVars.id = this.ID;
myLoadVars.onLoad = function(){
mc.loadMovie("zoom.php");
}
myLoadVars.sendAndLoad("zoom.php", myLoadVars, "POST");
b = setInterval(preload, 100);
function preload (){
perc = 0;
car = myLoadVars.getBytesLoaded();
tot = myLoadVars.getBytesTotal();
perc = Math.round((car*100)/tot);
cf_load.caricamento.htmlText = "<font color='#FFFFFF'>loading zoom... </font>" + perc + "<font color='#FFFFFF'> of </font>" + tot;
if (car>1024) {
if (car == tot ) {
clearInterval(b);
}
}
}
grazie