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

Server-side actionscript language reference
Table of Contents

Advertisement

Returns
Nothing.
Description
Method; causes the server to purge all deleted properties that are older than the specified
version. Although you can also accomplish this task by setting the
property, the
method gives the script
SharedObject.resyncDepth
SharedObject.purge()
more control over which properties to delete.
Example
The following example deletes all the properties of the
shared object that are older
myShared
than the value of
- 3:
myShared.version
var myShared = SharedObject.get("foo", true);
myShared.lock();
myShared.purge(myShared.version - 3);
myShared.unlock();
SharedObject.resyncDepth
Availability
Flash Communication Server MX 1.0.
Usage
mySO.resyncDepth
Description
Property; an integer that indicates when the deleted properties of a shared object should be
permanently deleted. You can use this property in a server-side script to resynchronize shared
objects and to control when shared objects are deleted. The default value is infinity.
If the current revision number of the shared object minus the revision number of the deleted
property is greater than the value of
, the property is deleted.
SharedObject.resyncDepth
Also, if a client connecting to this shared object has a client revision that, when added to the
value of
is less than the value of the current revision on the
SharedObject.resyncDepth
server, all the current elements of the client shared object are deleted, the valid properties are
sent to the client and the client receives a "clear" message.
SharedObject class
135

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