Example
The following example gets the value of the
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
the names in the
names
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);
}
126
Server-Side ActionScript Language Reference
name
getPropertyNames()
variable. It then enumerates those property names in a
property and passes it to the
on the
shared object and places
myInfo
variable:
value
loop.
for
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?