MACROMEDIA FLASH MEDIA SERVER 2-SERVER-SIDE ACTIONSCRIPT LANGUAGE Reference page 123

Server-side actionscript language reference
Table of Contents

Advertisement

SharedObject.get()
Availability
Flash Communication Server MX 1.0.
Usage
SharedObject.get(name, persistence [, netConnection])
Parameters
Name of the shared object instance to return.
name
A Boolean value:
for a persistent shared object;
for a
persistence
true
false
nonpersistent shared object. If no value is specified, the default value is
.
false
A NetConnection object that represents a connection to an application
netConnection
instance. You can pass this parameter to get a reference to a shared object on another server or
a shared object that is owned by another application instance. All update notifications for the
shared object specified by the
parameter are proxied to this instance, and the remote
name
instance notifies the local instance when a persistent shared object changes. The
NetConnection object that is used as the
parameter does not need to be
netConnection
connected when you call
. The server connects to the remote shared
SharedObject.get()
object when the NetConnection state changes to connected. This parameter is optional.
Returns
A reference to an instance of the SharedObject class.
Description
Method (static); creates a shared object or returns a reference to an existing shared object. To
perform any operation on a shared object, the server-side script must get a reference to the
shared object using the
method. If the requested object is not found, a
SharedObject.get()
new instance is created.
There are two types of shared objects, persistent and nonpersistent, and they have separate
namespaces. This means that a persistent and nonpersistent shared object can have the same
name and exist as two distinct shared objects. Shared objects are scoped to the namespace of
the application instance and are identified by a string. The shared object names should
conform to the URI specification.
SharedObject class
123

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MEDIA SERVER 2-SERVER-SIDE ACTIONSCRIPT LANGUAGE 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