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

Server-side actionscript language reference
Table of Contents

Advertisement

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
An information object. For more information, see "Client-Side Information Objects,"
info
in the Client-Side ActionScript Language Reference for Flash Media Server 2.
Returns
Nothing.
SharedObject class
131

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?

This manual is also suitable for:

Flash media server 2

Table of Contents