usmanlakhani
08-28-2005, 10:04 PM
I am a new person to this concept and have been trying to get an answer for this for ever .... could some one please help me ?
mx.remoting.Service.Service;
if (init == null) {
init = true;
gateway = "http://localhost/flashRemoting/gateway.aspx";
myConn = NetServices.createGatewayConnection(gateway);
service = "flashDotNet";
myServiceObject = myConn.getService(service, this);
}
btnGo.onRelease = function() {
myServiceObject.helloWorld();
}
// Invoked when helloworld function returns a result
function helloWorld_Result(result) {
tbMessage = result;
}
// Invoked when helloworld function returns an error
function helloWorld_Status(status) {
tbMessage = status.description;
}
i got so far and i dont have any errors in syntax but i dont have any output either ! i use MX 7.0 and i dont know which version of AS I use HELP PLEASE
mx.remoting.Service.Service;
if (init == null) {
init = true;
gateway = "http://localhost/flashRemoting/gateway.aspx";
myConn = NetServices.createGatewayConnection(gateway);
service = "flashDotNet";
myServiceObject = myConn.getService(service, this);
}
btnGo.onRelease = function() {
myServiceObject.helloWorld();
}
// Invoked when helloworld function returns a result
function helloWorld_Result(result) {
tbMessage = result;
}
// Invoked when helloworld function returns an error
function helloWorld_Status(status) {
tbMessage = status.description;
}
i got so far and i dont have any errors in syntax but i dont have any output either ! i use MX 7.0 and i dont know which version of AS I use HELP PLEASE