The following are possible values for the
•
clears all recorded streams associated with the instance.
/
•
clears recorded streams /foo/bar; if bar is a directory name, no streams are deleted.
/foo/bar
•
clears all streams stored in the instance directory /foo/bar. The bar directory is
/foo/bar/*
also deleted if no streams are in use within this name space.
•
/foo/bar/XX??
are directories within the given directory listing, the directories are cleared of any streams that
match
.
XX??
If an
application.clearStreams
recorded file is set to length 0 (cleared), and the internal cached data is also cleared.
Note: You can also use the Administration API removeApp method to delete all the resources for a single instance.
Examples
The following example clears all recorded streams:
function onApplicationStop(clientObj){
application.clearStreams("/");
}
Application.clients
Availability
Flash Communication Server MX.
Usage
application.clients
Description
Property (read-only); an object containing all the Flash clients or other Flash Communication
Servers currently connected to the application. The object is a custom object like an array, but
with only one property,
instance, and you can use the
application. You can use the array access operator (
to access elements in the object.
The object used for the
difference: you can't use the following syntax to iterate through the object:
for(var i in application.clients) {
// insert code here
}
Instead, use the following code to loop through each element in a
for (var i = 0; i < application.clients.length; i++) {
// insert code here
}
streamPath
clears all streams that begin with
method is invoked on a stream that is currently recording, the
. Each element in the object is a reference to a Client object
length
property to determine the number of users connected to the
length
property is not an array, but it acts the same except for one
clients
parameter:
, followed by any two characters. If there
XX
) with the
[]
application.clients
clients
Server-Side Communication ActionScript
property
object:
13
Need help?
Do you have a question about the FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY and is the answer not in the manual?