User Guide
126 Server-Side ActionScript Language Reference
Example
The following example gets the value of the name property and passes it to the value variable:
value = sharedInfo.getProperty(name);
See also
SharedObject.setProperty()
SharedObject.getPropertyNames()
Availability
Flash Communication Server MX 1.0.
Usage
mySO.getPropertyNames()
Parameters
None.
Returns
An array of strings that contain all the property names of a shared object.
Description
Method; enumerates all the property names for a given shared object.
Example
The following example calls getPropertyNames() on the myInfo shared object and places
the names in the
names variable. It then enumerates those property names in a for loop.
myInfo = SharedObject.get("foo");
var addr = myInfo.getProperty("address");
myInfo.setProperty("city", San Francisco");
var names = myInfo.getPropertyNames();
for (x in names){
var propVal = myInfo.getProperty(names[x]);
trace("Value of property " + names[x] + " = " + propVal);
}