hi,i have write the server side function code with lua. my flex code call lua function and get the result infomation.
how could flex get the lua result info? can anybody help me? thx.
my demo code
server side code with lua
function onConnection(client,checkcode)
if (not (checkcode == "888888")) then
assert(false,"invalid code!");
end
end
client side code with flex
_connection = new NetConnection();
_connection.addEventListener(NetStatusEvent.NET_STATUS, connectionHandler);
try
{
_connection.connect(protocol + _host + "/" + _application, _user, _meeting,_pwd);
}
catch (e:Error)
{
//i want get the error message from lua code ,but when i debug the flex code , server side had raised the error,but the flex get nothing.why?
}