ho risolto, ma non sono contento.
ho modificato il codice php come mi hai suggerito, e come detto nel text mi diceva undefined.
Ho modificato il codice flash così:
Ora ho appunto inserito il percorso preciso....ovvio che sono in un localhost.posso indicare allora solo il file php visto che risiede nello stesso percorso dell'swf o debbo indicare sempre tutto l'url completo???codice:stop(); //================================= // INIT //================================= //declare path to php files lvOut = new LoadVars(); //create lv object lvIn = new LoadVars(); //create lv object lvIn.onLoad = function (success) { if(success){ output.text = lvIn.returnVal;//PHP variable value to textbox }else{ output.text = "fail"; //or notify of failure } } //================================= // BTN //================================= myBtn.onRelease = function(){ lvOut.years = years.text; //assign user-input value to lv property called years //lvOut.send(path + "dogyears.php","_blank"); //send to a blank window lvOut.sendAndLoad("http://localhost/dogyears.php", lvIn, "POST"); //get results returned to lvIn };

Rispondi quotando