heyder
12-16-2003, 04:44 PM
I'm trying to use remoting in FLASH MX 2004 using AMF-PHP using the following script but... I'm getting the error listed under the code. Has anybody else had this issue?
// Include the NetServices.as file to allow Remoting
#include "NetServices.as"
// Uncomment the next line to include the NetDebug.as file if you want to enable
// and use the NetConnection Debugger Panel. For deployment make sure you comment it out.
#include "NetDebug.as"
//
// Initiliaze our gateway connection and our service
if (inited == null)
{
inited = true;
NetServices.setDefaultGatewayURL ("http://localhost/remoting/simple_gateway.php");
var conn = NetServices.createGatewayConnection ();
var myService = conn.getService ("ams_data", this);
}
**Error** Scene=Scene 1, layer=Layer 3, frame=1:Line 13: There is no method with the name 'setDefaultGatewayURL'.
NetServices.setDefaultGatewayURL ("http://localhost/remoting/simple_gateway.php");
Total ActionScript Errors: 1 Reported Errors: 1
// Include the NetServices.as file to allow Remoting
#include "NetServices.as"
// Uncomment the next line to include the NetDebug.as file if you want to enable
// and use the NetConnection Debugger Panel. For deployment make sure you comment it out.
#include "NetDebug.as"
//
// Initiliaze our gateway connection and our service
if (inited == null)
{
inited = true;
NetServices.setDefaultGatewayURL ("http://localhost/remoting/simple_gateway.php");
var conn = NetServices.createGatewayConnection ();
var myService = conn.getService ("ams_data", this);
}
**Error** Scene=Scene 1, layer=Layer 3, frame=1:Line 13: There is no method with the name 'setDefaultGatewayURL'.
NetServices.setDefaultGatewayURL ("http://localhost/remoting/simple_gateway.php");
Total ActionScript Errors: 1 Reported Errors: 1