Sharedobject.size; Sharedobject.unlock - MACROMEDIA FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY Manual

Server-side communication actionscript dictionary
Table of Contents

Advertisement

If you call
SharedObject.setProperty
SharedObject.onSync
shared object. The
property on the client side. For example, the following two lines of code are equivalent: the first
line is server-side ActionScript, and the second is client-side ActionScript:
sharedInfo.setProperty(nameVal, "foo");
clientSO.data[nameVal] = "foo";
Example
This example uses the
value
San Francisco
results in the Output window by using a
myInfo = SharedObject.get("foo");
var addr = myInfo.getProperty("address");
myInfo.setProperty("city", "San Francisco");
var names = sharedInfo.getPropertyNames();
for (x in names){
var propVal = sharedInfo.getProperty(names[x]);
trace("Value of property " + names[x] + " = " + propVal);
}
See also
SharedObject.getProperty

SharedObject.size

Availability
Flash Communication Server MX.
Usage
mySharedObject.size()
Parameters
None.
Returns
An integer indicating the number of properties.
Description
Method; returns the total number of valid properties in a shared object.
Example
This example gets the number of properties of a shared object and assigns that number to the
variable
:
len
var myShared = SharedObjecd.get(application, "foo", true);
var len = myShared.size();

SharedObject.unlock

Availability
Flash Communication Server MX.
on the server side, it invokes a change message in the
method on the client side for any Flash Player client that is using the
parameter on the server side is the same as an attribute of the
name
SharedObject.setProperty
. It then enumerates all the property values in a
trace
method to create the property
for
action.
Server-Side Communication ActionScript
data
with the
city
loop and prints out the
55

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY and is the answer not in the manual?

This manual is also suitable for:

Flash communication server mx

Table of Contents