Sharedobject Class - MACROMEDIA FLASH MEDIA SERVER 2-SERVER-SIDE ACTIONSCRIPT LANGUAGE Reference

Server-side actionscript language reference
Table of Contents

Advertisement

The following example uses a named function,
called" to the server log:
function callback1(){
trace("interval called");
}
setInterval(callback1, 1000);
The following example also uses a named function,
called" to the server log, but it passes the message to the function as a parameter:
function callback2(s){
trace(s);
}
setInterval(callback2, 1000, "interval called");

SharedObject class

Availability
Flash Communication Server MX 1.0.
The SharedObject class lets you store data on the server and share data between multiple
client applications in real time. Shared objects can be temporary, or they can persist on the
server after an application has closed; you can consider shared objects as real-time data transfer
devices.
This entry explains the server-side SharedObject class. You can also create shared
objects with the client-side SharedObject class. For more information, see
"SharedObject class" in
Server 2.
The following list describes common ways to use shared objects in server-side ActionScript:
Storing and sharing data on a server
A shared object can store data on the server for other clients to retrieve. For example, you
can open a remote shared object, such as a phone list, that is persistent on the server.
Whenever a client makes a change to the shared object, the revised data is available to all
clients that are currently connected to the object or that connect to it later. If the object is
also persistent locally and a client changes the data while not connected to the server, the
changes are copied to the remote shared object the next time the client connects to the
object.
116
Server-Side ActionScript Language Reference
callback1
Client-Side ActionScript Language Reference for Flash Media
, to send the message "interval
, to send the message "interval
callback2

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?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash media server 2

Table of Contents