A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: problem with main.asc

  1. #1
    Junior Member
    Join Date
    Jul 2002
    Posts
    22
    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?

  2. #2
    psx = new Moderator();
    Join Date
    Jan 2001
    Posts
    923
    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center