-
I have created a main.asc in which I load components.asc. In the same file there was a calling to a method by Server side: NewClient.call("setHistory", null, application.history); By Client side : NetConnection.setHistory = function(msg) {
Story.text = msg;
}.
This is the problem: by server the calling happens, infact the method "call" return true, but on client side the method setHistory doesn't happens.
This problem there isn't if there isn't the string load("components.asc").WHY?????
Someone can help me?
-
Hey -
It depends on where you are calling "setHistory". If you're calling it inside the "onConnect", you may be in luck. I found this thread that may help:
http://chattyfig.figleaf.com/cgi-bin...adehdbolhffjif
The idea is that the components change onConnect to call 2 more functions, onConnectAccept, and onConnectReject. I'm guessing if you put your setHistory into the "accept" function you'll be good to go.
Psx
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|