Flash Remoting on Windows machine

Hello, I’ve been working on a mac w/ Flash Remoting in MX2004 pro for about 6 months now w/ great results.

I’ve been trying to work on Remoting projects on my home computer (windows) w/ Flash mx2004 pro and can’t get the remoting to work.

First, the remoting wouldn’t work if I had these includes:
#include “NetServices.as”
#include “NetDebug.as”

if I used this instead it worked:

import org.amfphp.remoting.NetServices;
import org.amfphp.remoting.NetDebug;

Now the problem is that I can’t make calls to my remoting class to return Mysql data.

For instance:

Basic class:

class db_interface # extends verify_login
{
function db_interface()
{
$this->methodTable = array
(
“get_show_data” => array
(
“description” => “Get show according to login”,
“access” => “remote”
)
);
}

   function get_show_data( )
   {
         $conn_id = mysql_pconnect( 'localhost', 'username', 'password' ); 
         mysql_select_db ( 'db' );
         $select_shows = "SELECT * FROM shows";
         $result_shows = mysql_query( $select_shows, $this->conn_id );
   
         return $result_shows;             
  }

}

now in my actionscript I have this:

import org.amfphp.remoting.NetServices;
import org.amfphp.remoting.NetDebug;

main_responder = new Object();
NetServices.setDefaultGatewayUrl("…/gateway.php");
var conn = NetServices.createGatewayConnection();
service = conn.getService(“db_interface”, main_responder );

main_responder.get_show_data_Result = function( data )
{
txt_output += "
len: " + data.getLength(); // !! Will not show
length

     for( i=0; i < data.getLength(); i++)   // !! This will not work
     {   
          txt_output += "

i: " + i;
}
}
service.get_show_data();

As you can see something is strange here.

Any Ideers?

Clem C