User Guide

Application class 21
If you call the clearSharedObjects() method and the specified path matches a shared
object that is currently active, all its properties are deleted, and a “clear” event is sent to all
subscribers of the shared object. If it is a persistent shared object, the persistent store is also
cleared.
Example
The following example clears all the shared objects for an instance:
function onApplicationStop(){
application.clearSharedObjects("/");
}
See also
SharedObject.clear()
Application.clearStreams()
Availability
Flash Communication Server MX 1.0.
Usage
application.clearStreams(streamPath)
Parameters
streamPath A string that indicates the URI of a stream.
Returns
A Boolean value of true if the stream at the specified path was deleted; otherwise, false. If
using wildcard characters to clear multiple stream files, the method returns
true only if all the
streams matching the wildcard pattern were successfully deleted; otherwise it returns
false.
Description
Method; clears recorded streams (FLV) files and MP3 files associated with the application
instance. You can use this method to clear a single stream, all streams associated with the
application instance, just those streams in a specific subdirectory of the application instance,
or just those streams whose names match a specified wildcard pattern.