User Guide

SharedObject class 131
The following example shows the receiving client-side script:
connection = new NetConnection();
connection.connect("rtmp://flashmediaserver/someApp");
var x = SharedObject.get( "foo", connection.uri, true);
x.connect(connection);
x.onAdrChange = function(str) {
// Shared Object has been updated,
// can look at the “name”, “address” and “city” now
}
x.onActChange = function(str) {
// Shared Object has been updated
// can look at the “account” property now
}
SharedObject.name
Availability
Flash Communication Server MX 1.0.
Usage
mySO.name
Description
Property (read-only); the name of a shared object.
SharedObject.onStatus
Availability
Flash Communication Server MX 1.0.
Usage
mySO.onStatus = function(info) {}
Parameters
info An information object. For more information, see “Client-Side Information Objects,
in the Client-Side ActionScript Language Reference for Flash Media Server 2.
Returns
Nothing.