Answered
using a responder with a netconnection
I'm using Flex and trying to call FMS3 over a netconnection.
I want the responder to return values to Flex.
Basically I just make a call
theNetConnection.call ( "myFunction", new Responder ( hadSuccess, wasFailure) );
private function hadSuccess( returnedValue:Object) {
Alert.show ( returnedValue.toString () );
}
private function wasFailure( failure:Object) {
Alert.show ( failure.toString()
}
Then on the server roughly......
myFunction = function ( ){
return "It worked";
}
The server gets called and then the responder gets called with success, but there is never any value returned. What am I missing?????????
Basically I just make a call
theNetConnection.call ( "myFunction", new Responder ( hadSuccess, wasFailure) );
private function hadSuccess( returnedValue:Object) {
Alert.show ( returnedValue.toString () );
}
private function wasFailure( failure:Object) {
Alert.show ( failure.toString()
}
Then on the server roughly......
myFunction = function ( ){
return "It worked";
}
The server gets called and then the responder gets called with success, but there is never any value returned. What am I missing?????????
