![]() |
|
||||||||||
|
|||||
|
Регистрация: Sep 2006
Сообщений: 27
|
Ребят, есть код на AS 1.0
System.onStatus = myResult.onStatus; Как он будет выглядеть на 2.0??? Буду благодарен за помощь ... |
|
|||||
|
Регистрация: Sep 2006
Сообщений: 27
|
выдает ошибку ... мол такого быть и не может.
сделал проще. убрал System. терь все работает |
|
|||||
|
Регистрация: 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");
|
![]() |
![]() |
Часовой пояс GMT +4, время: 02:31. |
|
|
« Предыдущая тема | Следующая тема » |
|
|