An optional value that specifies whether the attributes of the shared object's
persistence
property are persistent locally, remotely, or both, and that may specify where the shared
data
object will be stored locally. Acceptable values are as follows:
(default) or
null
server. (These values have the same effect as omitting the
specifies that the shared object is persistent only on the server.
true
A full or partial local path to the shared object indicates that the shared object is persistent
on the client and the server; on the client, it is stored in the specified path. On the server,
it is stored in a subdirectory within the Flash Media Server applications directory. For
more information, see the Description.
If the user has chosen to never allow local storage for this domain, the object will not
be saved locally, even if a local path is specified for
information, see
Returns
A reference to an object that can be shared across multiple clients. If Flash can't create or find
the shared object (for example, if a local path was specified for
directory exists), this method returns
Description
Method; returns a reference to an object that can be shared across multiple clients by means of
the Flash Media Server. To create a shared object that is available only to the current client,
use
SharedObject.getLocal()
After issuing this command, use
Flash Media Server, as follows:
var my_nc:NetConnection = new NetConnection();
my_nc.connect("rtmp://somedomain.com/applicationName");
var myRemote_so = SharedObject.getRemote("mo", my_nc.uri, false);
myRemote_so.connect(my_nc);
To confirm that the local and remote copies of the shared object are in sync, use the
SharedObject.onSync
All clients that want to share this object must pass the same values for
Understanding persistence for remote shared objects
persistent on the client or server; that is, when all clients close their connections to the shared
object, it is deleted. To create a shared object that is saved locally or on the server, pass a value
for
.
persistence
128
Client-Side ActionScript Language Reference
specifies that the shared object is not persistent on the client or
false
"Local disk space considerations" on page
null
.
SharedObject.connect()
event handler.
persistence
persistence
persistence
.
to connect the object to the
By default, the shared object is not
parameter.)
. For more
115.
but no such
and
objectName
URI
.
Need help?
Do you have a question about the FLASH MEDIA SERVER 2-CLIENT-SIDE ACTIONSCRIPT LANGUAGE REFERENCE FOR FLASH MEDIA SERVER 2 and is the answer not in the manual?
Questions and answers