Se l'output php è di questo tipo:
//php
totale_offerte=2&
foto1=nomefile.jpg&
titolo1=testo&
foto2=nomefile2.jpg&
titolo2=testo2&
//-------------------------------------------
AS
//-----------------------------------------
rand=random(999999999999999)
myVars=new LoadVars()
myVars.onLoad = function(success) {
if(success)
{
for (i=1; i<=myVars["totale_offerte"]; i++)
{
_root["foto"+i].loadMovie(myVars["foto"+i]);
_root["foto"+i].xscale = 20;
_root["foto"+i].yscale = 22;
_root["txt_titolo"+i].text = myVars["titolo"+i];
}
}
else trace("problemi nel caricamento dati")
}
myVars.load("file.php?rand="+rand,"POST")

Rispondi quotando