Remotely persistent shared objects
You create remote shared objects that are persistent only on the server by passing a value of
for the
parameter in the client-side
true
persistence
SharedObject.getRemote()
command or in the server-side
command. These shared objects are
SharedObject.get()
named with the extension .fso, and are stored on the server in a subdirectory of the
application that created the shared object. The Flash Media Server creates these directories
automatically; you don't have to create a directory for each instance name.
Remotely and locally persistent shared objects
You create remote shared objects that are persistent on the client and the server by passing a
local path for the
parameter in your client-side
persistence
SharedObject.getRemote()
command. The locally persistent shared object is named with the extension .sor and is stored
on the client in the specified path. The remotely persistent .fso file is stored on the server in a
subdirectory of the application that created the shared object.
By specifying a partial path for the location of a locally persistent remote shared object, you
can let several applications from the same domain access the same shared objects. For more
information, see
in the Client-Side ActionScript Language
SharedObject.getRemote()
Reference for Flash Media Server 2.
Portability across servers
It is important to consider your development configuration and your production
configuration when you are developing applications.
Name application elements using all lowercase text.
Macromedia recommends that you
use all lowercase letters and no spaces when you name directories and files used with Flash
Media Server and its applications. This practice helps to ensure that, during development,
your applications work if you move files to different computers on different platforms.
Use a relative path or an absolute path to connect to the server.
In your SWF file's
statement, you can use either a relative path or an absolute path
NetConnection.connect()
to connect to the registered application directory in the Flash Media Server directory. A single
slash (/) followed by the application name indicates a relative path and lets you move the files
to a different server without changing the code. Double slashes (//) indicate an absolute path.
Portability across servers
83
Need help?
Do you have a question about the FLASH MEDIA SERVER 2-DEVELOPING MEDIA and is the answer not in the manual?
Questions and answers