Comunidad de diseño web y desarrollo en internet online

Alguien que ya halla usado amfphp 1.0 beta?

Citar            
MensajeEscrito el 24 May 2005 03:41 pm
Si alguien por ahi ha probado esta nueva version?

es que tengo serios problemas para correr el ejemplo que me da el service browser.

Como ahora el amfphp usa clases, a la hora de correr el ejemplo, el primer error que me mando es que las clases deben de estar definiidas en un archivo as externo (que luego supe que debe de llevar el mismo nombre de la clase, como en java)

Bueno lo hago asi y ahora los errores son acerca de todos los import que estoy tratando de hacer.

Aqui les va el codigo:

import mx.remoting.Service;
import mx.rpc.RelayResponder;
import mx.rpc.FaultEvent;
import mx.rpc.ResultEvent;
import mx.remoting.PendingCall;
import mx.remoting.RecordSet;
import mx.remoting.DataGlue;
import mx.utils.Delegate;

import holaMundo;

holaMundo.as contiene lo siguiente:

class holaMundo
{

//Change the gateway URL as needed
var gatewayUrl:String = "http://localhost/flashservices/gateway.php";
var service:Service;

function holaMundo()
{
mx.remoting.debug.NetDebug.initialize();
this.service = new Service(this.gatewayUrl, null, "holaMundo", null, null);

}

//Regresa hola mundo, y el texto enviado, lo transforma
function enviar(dato)
{
var pc:PendingCall = this.service.enviar(dato);
pc.responder = new RelayResponder(this, "handleEnviar", "handleRemotingError");
}

function handleEnviar(re:ResultEvent)
{
//Implement custom callback code
}

function handleRemotingError( fault:FaultEvent ):Void
{
mx.remoting.debug.NetDebug.trace({level:"None", message:"Error: " + fault.fault.faultstring });
}
}

De antemano muchas gracias

DLB
bye

Por mitohuffman

3 de clabLevel



 

firefox
Citar            
MensajeEscrito el 24 May 2005 04:11 pm
Has probado usando el buscador del foro?

Por josepzinkjn

63 de clabLevel



 

firefox

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.