Section 9.1. Why Use Calls?


9.1. Why Use Calls?

Chapter 5 and Chapter 8 already showed you examples of using the send( ) method to call remote methods :

  • NetStream.send( ) and Stream.send( ) invoke a method on all the clients that are playing that net stream. Furthermore, the method call can be buffered and saved as part of the stream itself, allowing the creation of powerful recording and playback interfaces (see Chapter 15). Chapter 5 provides details on how to use this particular type of RMI.

  • Conversely, the SharedObject.send( ) command invokes a method on all the clients connected to that shared object. This can be used to invoke a method on a subset of your clients (the ones connected to a particular shared object). Chapter 8 includes an example of how to use this type of RPC.



Programming Flash Communication Server
Programming Flash Communication Server
ISBN: 0596005040
EAN: 2147483647
Year: 2003
Pages: 203

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net