Originariamente inviato da alpeweb
quando hai tempo:

ho una funzione (Resize)in php per il ridimensionamento
di immagini, se non ho capito male dovrei mettere,
ob_start("Resize");
header("Content-Length: ".ob_get_length());
ob_end_flush(); // close the flush, finish

poi ho l'Header per l'output del jpg relativo.

Inflash dovrei mettere:
var serverbytes = new LoadVars2(); // write LoadVars2, not LoadVars

serverbytes.onLoad = function(success) {
trace("____________________________________");
trace("Loaded: " + this.getBytesLoaded());
trace("Total: " + this.getBytesTotal());
}

serverbytes.onLoadProgress = function(loadedBytes, totalBytes) {
trace(loadedBytes + " - " + totalBytes); // not static, it's a loop !
}

serverbytes.sendAndLoad("http://mywebspace/myfile.php", serverbytes);


ok? e poi il file LoadVars2.as

sempre se non ho scritto castronerie secondo te potrebbe
funzionare anche nel caso di generazione di una ventina di thumbnails
e che quindi mi richiamano tutti lo stesso file php?
Cioè ad ogni chiamata del php mi crea un nuovo ob indipendente
dal precedente??
Devi crearti tante istanze new LoadVars2() quante solo le tumbs che andrai a caricare anche allo stesso tempo.

var myTumb1:loadVars2 = new LoadVars2();
car myTumb2:LoadVars2 .... etc etc ....