Comunidad de diseño web y desarrollo en internet online

Problema con Remoting y AMFPHP

Citar            
MensajeEscrito el 16 Oct 2005 01:46 am
Holas!!
Bueno, otra vez problemas a la hora de probar remoting y amfphp...

El codigo del gateway.php(que esta en la carpeta "flashservices":

Código :

<?php
     include ("app/Gateway.php");
     $gateway = new Gateway ();
     $gateway ->setBaseClassPath ("services/");
     $gateway ->service();
?>


Y bueno, hice una pequeña pelicula de flash para probarlo:

Código :

import mx.remoting.NetServices;
import mx.remoting.Connection;
mx.remoting.debug.NetDebug.initialize();
NetServices.setDefaultGatewayUrl("http://localhost/flashservices/gateway.php");
conn = NetServices.createGatewayConnection();
serv = conn.getService("test", testRemoting);
serv.testeo("Esto esta andando!!");
testRemoting = new Object();
testRemoting.test_Result = function(respuesta) {
   texto.text = respuesta;
};
testRemoting.onStatus = function(respuesta) {
   trace(respuesta);
};


Y "test.php", el servicio:

Código :

<?php
class test
{
  function test(){
    $this->methodTable = array(
        "testeo" => array(
            "description" => "Toma y envia el mensaje enviado por flash",
            "access" => "remote",
            "arguments" => array(
                "llamada")//Mensaje proveniente de Falsh...
            )
    );
  }
  
  function testeo($llamada){
    return $llamada;
  }
}
?>


Bueno, instale remoting para AS 1 y para AS 2... antes funcionaba todo... formatee la pc, reinstale todo, y ahora no anda :S...
Bueno, espero que me puedan ayudar...

Por _pablito_

Claber

190 de clabLevel



Genero:Masculino  

Argentina

firefox
Citar            
MensajeEscrito el 16 Oct 2005 01:54 am
testRemoting.testeo_Result = function(respuesta) {


saludos :)

Por Maikel

BOFH

5575 de clabLevel

22 tutoriales
5 articulos

Genero:Masculino   Team Cristalab

Claber de baja indefinida

firefox
Citar            
MensajeEscrito el 16 Oct 2005 02:43 am
Nah, soy un boludo importante yo!! jejeje...
Bueno, grax che!!

Pablo

Por _pablito_

Claber

190 de clabLevel



Genero:Masculino  

Argentina

firefox
Citar            
MensajeEscrito el 16 Oct 2005 11:54 pm
Bueno, les vuelvo a escribir porque sigue sin funcionar habiendo arreglado eso...
Si alguien sabe que puede ser por favor que me lo diga a ver si lo puedo solucionar...
Grax!!!

Pablo

Por _pablito_

Claber

190 de clabLevel



Genero:Masculino  

Argentina

firefox
Citar            
MensajeEscrito el 17 Oct 2005 12:03 am

extracto de código escribió:


testRemoting = new Object();
serv = conn.getService("test", testRemoting);
serv.testeo("Esto esta andando!!");
//testRemoting = new Object();


sencillamente declaraste el objeto despues de usarlo

saludos :)

Por Maikel

BOFH

5575 de clabLevel

22 tutoriales
5 articulos

Genero:Masculino   Team Cristalab

Claber de baja indefinida

firefox
Citar            
MensajeEscrito el 17 Oct 2005 12:19 am
Jajaja, una mas y me recibo!! Que ciego que estoy!!

Gracias Maikel!!

Pablo

Por _pablito_

Claber

190 de clabLevel



Genero:Masculino  

Argentina

firefox

 

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