I defined nc as: nc = newobject("netconnection")
I want "serverret" to get "flashcom server rocks" from server.
If i program with actionscript, it should be:
nc.call("sayHelloServer", new server_ret());
server_ret = function(){
this.onResult = function(value_ret){
trace("message from server: "+ value_ret);
};
However, I want to do it with lingo. Currently, I think "serverret"
should not be a handle, but an instance. I have not idea what kind
instance it should be and how to defind the "onResult" property in
lingo. Do you have any suggestions?
Is there a chapter talking about how to speaking to flashcom with
lingo in the book you recommand? Is there any example about flashcom &
lingo?
Thanks
Mary
On 14 Mar 2005 20:43:44 -0500, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> What is "serverret" supposed to be?
>
> And how have you defined nc on the client?
>
> Speaking of FlashCom, O'Reilly just released a new FlashCom Server book,
> which I edited. See:
>
> http://www.amazon.com/exec/obidos/ASIN/0596005040/ref%3Dnosim/zeusproduction
> s/
>
> Regards,
> Bruce
>
> > Date: Fri, 11 Mar 2005 11:33:03 -0600
> > From: Mary White <[EMAIL PROTECTED]>
> > Subject: <lingo-l> how to use nc.call in lingo?
> >
> > I use flashcom and director to develope an application. on the server
> > side I have
> >
> > 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)
> >
> >
> > I want linge to go to "serverret" function and print out the returned
> > value from the server. Can anyone tell me the correct way to do this?
> >
> [To remove yourself from this list, or to change to digest mode, go to
> http://www.penworks.com/lingo-l.cgi To post messages to the list, email
> [email protected] (Problems, email [EMAIL PROTECTED]). Lingo-L is for
> learning and helping with programming Lingo. Thanks!]
>
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/lingo-l.cgi To post messages to the list, email
[email protected] (Problems, email [EMAIL PROTECTED]). Lingo-L is for
learning and helping with programming Lingo. Thanks!]