FMS3 AS2 to AS3 SharedObject Problem

Ask a Question related to Macromedia Flash Flashcom, Design and Development.

  1. #1

    Default FMS3 AS2 to AS3 SharedObject Problem

    Hello. I'm migrating a flash application writen with AS2 and working fine to
    AS3. The flash connects to a Flash Media Server 3 but I don't think it was the
    problem. I'm in a problem that I can't resolve and I don't get more information
    about it.

    The code I want to migrate writen is:
    server-side:
    application.users_so.send("msgFromServer", "messageTXT");

    client-side (AS2):
    users_so=SharedObject.getRemote("users_so",connect ion.uri,false);
    users_so.connect(connection);
    users.so.msgFromServer = function (msg) { trace(msg);};

    But... how can I do that with AS3?

    That line users.so.msgFromServer = function (msg) { trace(msg);}; works
    perfectly using AS2 but no with AS3. I get the run-time error #2095 was unable
    to invoke callback. I can't find information about resolve this with AS3 code.

    Please, can anyone help me?.
    Thansk!



    FranMalaga Guest

  2. Similar Questions and Discussions

    1. Problem porting app from FMS2 to FMS3
      Hi all, I've been trying to port a flex app from FMS2 to FMS3 and I'm having a huge issue. It is a video conferencing app and it works just fine...
    2. FMS3 and FCS Connection
      HI I got an issue of FCS crash when FCS is connected with FMS3 and got an error of bad network data in FCS. FCS error text is given below: "Bad...
    3. connectionError With FMS3 Out-Of-Box VOD Example
      I'm new to FMS. When I try the out-of-the-box VOD example on FMS3 I consistently receive a connectionError on the client side. The video does...
    4. FMS3 and MS SQL 2005
      Do anyone know if there is any concern if I install FMS3 and MS SQL 2005 on the same server. many thanks for any advise.
    5. Access to FMS3
      Hi, How can I have access to FMS3. I need urgentely to test the SIP features, ie, route incoming audio from a Flash Player to a SIP server...
  3. #2

    Default Re: FMS3 AS2 to AS3 SharedObject Problem

    hi FranMalaga, please try the below for AS3:

    users_so=SharedObject.getRemote("users_so",connect ion.uri,false);
    users_so.connect(connection);
    users_so.client=this; // added code

    your "users.so.msgFromServer" should be "users_so.msgFromServer", a typo I
    think.

    YimTszLing Guest

  4. #3

    Default Re: FMS3 AS2 to AS3 SharedObject Problem

    Thanks YimTszLing. I't works!!! The result code was:

    function connectStream() {
    remoteUsers = SharedObject.getRemote("users_so",connection.uri,f alse);
    remoteUsers.connect(connection);
    remoteUsers.client=this;
    }

    function msgFromSrvr (msg:String)
    {
    trace(msg);
    }

    Thanks a lot!


    FranMalaga Guest

  5. #4

    Default Re: FMS3 AS2 to AS3 SharedObject Problem

    Hey please paste here full code .....i m also in same problem ..:(
    Raju_Adobe Guest

  6. #5

    Default Re: FMS3 AS2 to AS3 SharedObject Problem

    Hi! The code I have:

    var connection = new NetConnection();
    connection.client = this;
    connection.connect("rtmp://192.168.1.3/chat/room", "userName");

    var remoteUsers = new SharedObject();
    remoteUsers = SharedObject.getRemote("users_so",connection.uri,f alse);
    remoteUsers.connect(connection);
    remoteUsers.client=this;

    function msgFromSrvr (msg:String) { trace(msg); };

    In the server-side I wrote the next code:
    application.onAppStart = function () { application.users_so =
    SharedObject.get("users_so",false); }
    application.onConnect = function (userName) {
    application.users_so.send("msgFromSrvr","message_t xt"); }





    FranMalaga Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139