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
MaxManNH - 16 May 2006 18:24 GMT
I am having the exact same problem. My remoting application works fine on my
laptop as long
as the url for the gateway reads <a target=_blank
class=ftalternatingbarlinklarge
href="http://localhost/remotingData/gateway.aspx,">http://localhost/remotingData
/gateway.aspx,</a> but if I change
it to the name of my machine and attempt to run the swf through IE it just
sits there and
receives no reply. Is this a permissions issue?
The swf will actually work if I open the html page that the swf is embedded in
from the file
on my pc. It just won't work when I attempt to navigate to it by typing in the
URL in IE.
Flash MX2004 Professional
Flash Remoting Components MX2004 (unlicensed)
IIS 6.0
IE 6.0