Тема: AS 1.0 vs AS 2.0
Показать сообщение отдельно
Старый 15.09.2006, 14:34
awers вне форума Посмотреть профиль Отправить личное сообщение для awers Найти все сообщения от awers
  № 5  
Ответить с цитированием
awers

Регистрация: Sep 2006
Сообщений: 27
угу ... как выяснилось - да.
Код:
#include "NetServices.as"
var myURL = "http://localhost/flashservices/gateway";
var myServicePath = "HelloWorld";

myResult = new Object();

myResult.onResult = function(data){
   trace("Data received from Server : " + data);
}

myResult.onStatus = function(info){
   trace("An error occurred : " + info.description);
}

System.onStatus = myResult.onStatus;


var myServer = NetServices.createGatewayConnection(myURL);
var myService = myServer.getService(myServicePath, myResult);

myService.write("select `item` from `menu` where `id` = 1");