Ciao a tutti,
sto provando ad installare il Flash Remoting sulla mia versione CS3 in italiano....
Seguendo qualche tutorial in rete, ho scaricato un file zip con tutte le classi del remoting e le ho copiate nella cartella classes/mx.
Ora però, quando vado a compilare il seguente codice as2:
che ho trovato come esempio, mi dà continui errori, dicendo che non trova le classi Service, PeddingCall, ResultEvent etc..Codice PHP:import mx.remoting.*;
import mx.rpc.*;
import mx.remoting.debug.NetDebug;
var gatewayUrl:String = "http://localhost/amfphp/gateway.php"
NetDebug.initialize();
var _service:Service = new Service(gatewayUrl, null, 'HelloWorld', null , null);
var pc:PendingCall = _service.say("Hello world!");
pc.responder = new RelayResponder(this, "handleResult", "handleError");
function handleResult(re:ResultEvent)
{
trace('The result is: ' + re.result);
}
function handleError(fe:FaultEvent)
{
trace('There has been an error');
}
Qualcuno sa darmi una mano????![]()

Rispondi quotando