Using Communication Objects > Flash Communication Server objects > Server-side objects

 

Server-side objects

These objects are used only in server-side ActionScript. For more information about these objects, see the Server-Side Communication ActionScript Dictionary.

Application object The server-side Application object contains information about a Flash Communication Server application instance that lasts until the application instance is unloaded. The Application object lets you accept and reject client connection attempts, register and unregister classes and proxies, and create functions that are invoked when an application starts or stops, or when a client connects or disconnects.

Client object The server-side Client object represents each user's connection to a Flash Communication Server application instance. The Client object can receive messages sent by a client-side NetConnection.call command, and can invoke methods of the client-side NetConnection object. You can use the properties of the Client object to determine the version, platform, and IP address of each client. Using the Client object, you can also set individual read and write permissions of various application resources such as Stream objects and SharedObject objects. For more information, see Implementing dynamic access control.

NetConnection object The server-side NetConnection object lets you create a two-way connection between a Flash Communication Server application instance and an application server, another Flash Communication Server, or another Flash Communication Server application instance on the same server. You can also use server-side NetConnection objects to create more powerful applications; for example, you could get weather information from an application server, or share an application load with other Flash Communication Servers or application instances.

Using this object, you can connect to an application server for server-to-server interactions using standard protocols (such as HTTP), or connect to another Flash Communication Server for sharing audio, video, and data using the Macromedia Real-Time Messaging Protocol (RTMP).

You can use Macromedia Flash Remoting with the Flash Communication Server to communicate with application servers such as Macromedia ColdFusion MX, .NET, and J2EE servers. For more information, see the Flash Remoting site.

Remote shared object. Remote shared objects are created on the client but are also available to the server. They let you share data in real-time between multiple clients, and also store data for later retrieval by the same or different applications. For more information about client-side remote shared objects, see Understanding shared objects.

SharedObject object. Server-side shared objects let you communicate with client-side shared objects and with objects on other Flash Communication Servers. For more information about server-side shared objects, see Understanding shared objects.

Stream object. The server-side Stream object lets you handle each stream in a Flash Communication Server application. The Flash Communication Server automatically creates a Stream object when the NetStream.play or NetStream.publish method is called in a client-side script. You can also create a stream in server-side ActionScript by calling the Stream.get method. A user can access multiple streams at the same time, and there can be many Stream objects active at the same time.