To avoid overwriting streams, consider using unique names for users, streams, and so on. For
example, when recording a new stream, you could provide an incremental value:
outStream.publish("myRecording" + numSnaps, "record");
For information on deleting recorded stream files, see
more information on instance names and file storage, see the
and
NetStream.publish()
Media Server 2.
This section assumes that you are passing an instance name along with your application
name (see
"Deploying applications and application instances" on page
pass an instance name, Flash Media Server stores files in a subdirectory named
\_definst_ (for "default instance") in your registered application's directory.
About shared object files
Any shared object, either local or remote, can exist dynamically (for the life of the application
instance) or can be saved for use as persistent data. This section discusses the three types of
persistent shared objects you can create: persistent local shared objects, remote shared objects
that are persistent only on the server, and remote shared objects that are persistent on the
client and the server. (For more information on shared objects in general, see
shared objects" on page
Local shared objects are always persistent on the client, up to available memory and disk
space. However, by default Flash can save locally persistent remote shared objects only up to
100 K in size. When you try to save a larger object, Flash Player displays a Local Storage
dialog box, which lets the user allow or deny local storage for the domain that is requesting
access. The user can also use this dialog box to delete all locally persistent remote shared
objects. For more information, see "Local disk space considerations" in the SharedObject
entry of the Client-Side Media ActionScript Dictionary.
Persistent local shared objects
You create persistent local shared objects by using the client-side
command. Persistent local shared objects have the extension .sol. You can specify a storage
directory for the object by passing a value for the
SharedObject.getLocal()
82
Application Development Tips and Tricks
entries in the Client-Side ActionScript Language Reference for Flash
41.)
command.
"The Stream class" on page
NetConnection.connect()
SharedObject.getLocal()
parameter of the
localPath
55. For
15). If you don't
"Understanding
Need help?
Do you have a question about the FLASH MEDIA SERVER 2-DEVELOPING MEDIA and is the answer not in the manual?