SharedOblect.send() with FMS3 and AS3.0

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

  1. #1

    Default SharedOblect.send() with FMS3 and AS3.0

    Now that AS3.0 client side script is more strongly typed, it appears you cannot
    dynamically add a callback function as in the following example. I've tried
    using a Responder in the client code and it didn't work. The code compiled and
    ren but the callback wasn't invoked.

    // Sever side...
    var myShared = SharedObject.get("foo", true);
    myShared.send("doSomething", "this is a test");

    // Client side
    connection = new NetConnection();
    connection.connect("rtmp://www.macromedia.com/someApp");
    var x = SharedObject.getRemote("foo", connection.uri, true);
    x.connect(connection);
    x.doSomething = function(str) {
    // Process the str object.
    };


    a218150 Guest

  2. Similar Questions and Discussions

    1. 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...
    2. 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...
    3. 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.
    4. FMS3 file format
      Hi, We've been using FMS2 to record user-generated content. FMS2 natively saves files in FLV format with Nellymoser encoded audio. I saw in the...
    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 SharedOblect.send() with FMS3 and AS3.0

    Now that AS3.0 client side script is more strongly typed, it appears you cannot
    dynamically add a callback function as in the following example. I've tried
    using a Responder in the client code and it didn't work. The code compiled and
    ren but the callback wasn't invoked.

    // Sever side...
    var myShared = SharedObject.get("foo", true);
    myShared.send("doSomething", "this is a test");

    // Client side
    connection = new NetConnection();
    connection.connect("rtmp://www.macromedia.com/someApp");
    var x = SharedObject.getRemote("foo", connection.uri, true);
    x.connect(connection);
    x.doSomething = function(str) {
    // Process the str object.
    };


    a218150 Guest

  4. #3

    Default Re: SharedOblect.send() with FMS3 and AS3.0

    The NetConnection event handling did have to change slightly in AS3 to better
    deal with strong typing. The AS3 NetConnection object has a "client" property
    that is treated as a DynamicObject, and therefore can have methods added to it
    dynamically, like the AS2 NetConnection could. Use this object to add all your
    dynamic handlers for things like shared objects and RPC calls.

    KevinStreeter 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