Devo passare il valore di una variabile da un movie ad un altro.
Sul primo movie ho il seg codice collegato ad un pulsante:
on (release) {
var sender = new LoadVars();
sender.onLoad = function(success) {
if (success) {
trace("success ok=");
for(var prop in this){
this[prop]=this[prop].split("\r\n").join("");
trace(prop + ' ' + this[prop]);
}
if ((this['error'] != '')&&(this['error'] != undefined))
{
trace("str error" + this['error']);
info.text=this['error'];
}
else
{
info.text=this['id_utente'];
_root.id =this['id_utente'];
trace("id=" + _root.id)
loadMovie("form2.swf",1);
}
}
};
var host = 'http://127.0.0.1/p/flash/';
var page = 'memo_form1.php';
var qs = 'nome=' + nome.text;
qs += '&cognome=' + cognome.text;
qs += '&email=' + email.text;
qs += '&gg=' + gg.text;
qs += '&mm=' + mm.text;
qs += '&aa=' + aa.text;
var address = host + page + '?' + qs;
sender.load(address);
trace(qs);
}
In particolare, la variabile id_utente restituita dalla pagina php deve essere visibile in form2.swf ma non mi riesce e nn so come fare!!!!
Thxxxxx

Rispondi quotando
