sono nuova del flash e dell'actionscript....
sono riuscita a far leggere da/a php e flash i valori delle variabili di un formP
Ora xò sono bloccata sul fatto di indicare a flash quale animazione far partire dopo che un pulsante è stato premuto, ed ha letto i dati dalla pagina php ....
Ho questo codice ma la pagina mi resta ferma.....
E' un'unica animazione che a un certo numero del frame viene modifica in base alle esigenze.... uso _root.cellulare.gotoAndPlay(93); ma nn fa nulla e nn dà msg di errore...come si fa????
Thxxxx
on(release)
{
if (_root.nome.text ==""){
_root.info.text ="Inserire il nome";
}
else if (_root.cognome.text ==""){
_root.info.text="Inserire il cognome";
}
var sender = new LoadVars();
sender.onLoad = function(success) {
if (success) {
trace("v=" + this['vincente']);
if (this['error'] != '')
{
}
else if (this['vincente'] == 'si')
{
_root.cellulare.gotoAndPlay(93); trace("v=" + this['vincente']);
}
else if (this['vincente'] == 'no')
{
_root.cellulare.gotoAndPlay(104);
}
}
};
var host = 'http://127.0.0.1/xxxxx/';
var page = 'memo_reg.php';
qs = 'cognome=' + _root.cognome.text;
qs += '&cellulare=' + _root.cellulare.text;
var address = host + page + '?' + qs;
sender.load(address);
trace(qs);
}

P
Rispondi quotando