Groups | Blog | Home
all groups > macromedia flash flashcom > march 2005 >

macromedia flash flashcom : lingo and nc.call


maryneedhelp
3/14/2005 12:08:00 AM
Hello, I use flashcom and director to develope an application. the server side
and the client side code are: application.onConnect = function(clientObject,
username){ application.acceptConnection(clientObject);
clientObject.sayHelloServer = function(){ trace('the client say hi'); return
('flashcom server rocks.'); }; } on the client side I have
nc.call('sayHelloServer', serverret()) on serverret a, b put &a , &b
end the server side code is called and lingo do go to 'serverret' function,
However, &a and &b gives blank. a and b gives void. In other words, the
server side value 'flashcom server rocks' does doesn't received by lingo. Can
anyone tell me the code to do this? Thanks Mary
Berzy
3/14/2005 1:19:33 AM
I don't know lingo but In AS you would have to put an additional function
within serverret() like serverret = function(){ this.onResult =
function(result){ trace(result) } } could it be the same with lingo?
maryneedhelp
3/14/2005 2:31:42 PM
This function can be defined with actionscript. However, to get it work with
lingo, the correct syntex is needed and I haven't find an example talk about
it. Is there anyone can help me out? Thanks Mary
AddThis Social Bookmark Button