macromedia flash flash remoting:
Hello,
I have a flash file that connects to an asp.net page. The aspx page queries a
databse and returns a set of records to flash. Flash reads in those records and
processes those records. Locally, this works fine. However, on the server,
nothing happends. I spoke with tech support at hosting company and they tell me
everything is installed for Flash Remoting.
Here is the code thats on the server:
import mx.remoting.NetServices;
import mx.remoting.NetDebug;
mx.remoting.debug.NetDebug.initialize();
//CONSTRUCTOR
var inited:Boolean = false;
if(!inited){
inited = true;
NetServices.setDefaultGatewayUrl("
http://63.134.251.243/gateway.aspx");
var gatewayConn:Object = NetServices.createGatewayConnection();
gatewayConn.setDebugID( "Gateway Connection" );
var SQLQueryToolService:Object = gatewayConn.getService("matthewlemke",
this );
}
function SQLQueryToolAction(){
SQLQueryToolService.test("SELECT * FROM flashImages");
}
function test_Result(result){
trace(result);
_root.abc.text = result.toString();
}
SQLQueryToolAction();
Here is the code locally:
import mx.remoting.NetServices;
import mx.remoting.NetDebug;
mx.remoting.debug.NetDebug.initialize();
//CONSTRUCTOR
var inited:Boolean = false;
if(!inited){
inited = true;
NetServices.setDefaultGatewayUrl("http://localhost/matt/gateway.aspx");
var gatewayConn:Object = NetServices.createGatewayConnection();
gatewayConn.setDebugID( "Gateway Connection" );
var SQLQueryToolService:Object = gatewayConn.getService("matt", this );
}
function SQLQueryToolAction(){
SQLQueryToolService.test("SELECT * FROM flashImages");
}
function test_Result(result){
trace(result);
_root.abc.text = result.toString();
}
SQLQueryToolAction();
Any help is greatly appreciated.
Thanks,
Vic