Example Name: JavaExample1.fla
Language: ActionScript 1.0
Version: 1.0.0
Code:
#include "NetServices.as"
#include "NetDebug.as"
NetServices.setDefaultGatewayURL("http://localhost/flashservices/gateway");
var my_conn = NetServices.createGatewayConnection();
var javaExService = my_conn.getService("com.oreilly.frdg.JavaExamples",this);
javaExService.reverseString("this is a top secret code");
function onResult(response) {
trace(response);
}
function onStatus(error) {
trace(error.description);
}
Download code text
Download chapter example files