Understanding Shared Objects - MACROMEDIA FLASH MEDIA SERVER 2-DEVELOPING MEDIA Develop Manual

Developing media applications
Table of Contents

Advertisement

In the following table, the client-side calls on the left invoke the server-side calls on the right.
Client-side call
my_nc.connect
my_nc.close
my_nc.call("doThing", myCallbackFcn, 1, "foo")
my_so.send("doThing", 1, "foo")
In the following table, the server-side calls on the left invoke the client-side calls on the right.
Server-side call
my_client.call ("doThing", myCallbackFcn, 1, "foo") my_nc.doThing (1, "foo")
my_server_stream.send ("doThing", 1, "foo")
my_server_so.send("doThing", 1, "foo")

Understanding shared objects

Shared objects are a means for sharing data among different clients, among different instances
of an application running on the Flash Media Server, and across applications running on
multiple Flash Media Servers. The Flash Media Server supports three types of shared objects:
local, remote, and server-side. These objects are discussed briefly below. For more information
on working with shared objects, see
About local shared objects
One way to use shared objects is for local storage and retrieval of data. Data is stored on the
end-user's computer and may be accessed at different times by one or more Flash applications.
Local shared objects can also be non-persistent—that is, available only while the application is
running.
Local shared objects don't require a connection to the Flash Media Server, and are not
discussed in detail in this manual. For information about where persistent local shared object
data is stored, see
"About shared object files" on page
shared objects, see the
Language Reference for Flash Media Server 2.
"About shared object files" on page
SharedObject.getLocal()
Server-side call
application.onConnect
application.onDisconnect
my_client.doThing(1, "foo")
my_server_so.doThing(1, "foo")
Client-side call
my_ns.doThing (1, "foo")
my_so.doThing(1, "foo")
82.
82. For more information about local
entry in the Client-Side ActionScript
Understanding shared objects
41

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MEDIA SERVER 2-DEVELOPING MEDIA and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash media server 2

Table of Contents