MACROMEDIA FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY Specifikace Strana 106

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 369
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 105
Chapter 228
After a successful connection, the client makes a call on the connection. If the client needs a result
returned, the client provides a callback object to hold the result. On the server, the method
corresponding to the client call is invoked; and a result is returned to the client. The client has an
onResult handler that is called on the callback object passed in.
Call flow from client to server, with result passed back to client
Conversely, if a server makes a call to the client, it can provide a callback object. The client should
contain a method corresponding to the one called by the server code. Again, the client can return
a result, and the server’s
onResult handler is called on the callback object sent to the client.
Call flow from server to client, with result passed back to server
CLIENT
call("doThis",
callback_obj,a,b)
onResult
"doThis",a,b
resultObj
SERVER
clientObj.doThis(a,b)
CLIENT
netConnection.doThis(a,b)
SERVER
client.call("doThis",
callback_obj,a,b)
resultObj.onResult
"doThis",a,b
resultObj
Zobrazit stránku 105
1 2 ... 101 102 103 104 105 106 107 108 109 110 111 ... 368 369

Komentáře k této Příručce

Žádné komentáře