MACROMEDIA FLASH MEDIA SERVER 2-CLIENT-SIDE ACTIONSCRIPT LANGUAGE REFERENCE FOR FLASH MEDIA SERVER 2 Reference page 120

Client-side actionscript language reference for flash media server 2
Table of Contents

Advertisement

Before attempting to work with a remote shared object, you should first check for a return
value of
, indicating a successful connection, and then wait until you receive a result from
true
the function you have assigned to
you make to the object locally—before
SharedObject.onSync
See also
NetConnection class
SharedObject.data
Availability
Flash Player 6.
Flash Media Server (not required).
Usage
myLocalOrRemote_so.data
Description
Property; the collection of attributes assigned to the
attributes can be shared and/or stored. Each attribute can be an object of any of the basic
ActionScript or JavaScript types—Array, Number, Boolean, and so on. For example, the
following lines assign values to various aspects of a shared object:
var items_array:Array = new Array(101, 346, 483);
var currentUserIsAdmin:Boolean = true;
var currentUserName:String = "Ramona";
var my_so:SharedObject = SharedObject.getLocal("superfoo");
my_so.data.itemNumbers = items_array;
my_so.data.adminPrivileges = currentUserIsAdmin;
my_so.data.userName = currentUserName;
for (var prop in my_so.data) {
trace(prop+": "+my_so.data[prop]);
}
120
Client-Side ActionScript Language Reference
SharedObject.onSync
SharedObject.onSync
is not invoked if this call returns
,
SharedObject.getRemote()
. If you fail to do so, any changes
is invoked—may be lost.
false.
,
SharedObject.onSync
property of the object; these
data

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MEDIA SERVER 2-CLIENT-SIDE ACTIONSCRIPT LANGUAGE REFERENCE FOR FLASH MEDIA SERVER 2 and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Media server 2

Table of Contents