
Chapter 230
When designing your application, note the functionality used on both the client and the server.
For a description of how to use the client-side and server-side objects to fulfill the requirements
on both sides, see the Client-Side Communication ActionScript Dictionary and the Server-Side
Communication ActionScript Dictionary.
In general, when you write your ActionScript code, you divide it as follows:
• On the client side, write code for connecting, streaming data, getting and setting shared object
data, getting status information, and disconnecting.
• On the server side, write code for listening for when an application starts, accepting a
connection, providing methods to be invoked by clients, getting and setting shared object data,
getting status information, and listening for when an application stops and a connection ends.
In more advanced applications, you might also be connecting to external databases, application
servers, or other Flash Communication Servers.
For a simple illustration of using client-side and server-side ActionScript in your application, see
“Sample 4: Hello Server” on page 38. For more detailed suggestions on how to design and
implement your Flash Communication Server applications, see Chapter 4, “Application
Development Tips and Tricks,” on page 51.
Comentarios a estos manuales