MACROMEDIA FLASH COMMUNICATION SERVER MX-SERVER-SIDE COMMUNICATION ACTIONSCRIPT DICTIONARY Specifikace Strana 313

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 369
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 312
Server-Side Communication ActionScript 13
The following are possible values for the streamPath parameter:
/ clears all recorded streams associated with the instance.
/foo/bar 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
also deleted if no streams are in use within this name space.
/foo/bar/XX?? clears all streams that begin with XX, followed by any two characters. If there
are directories within the given directory listing, the directories are cleared of any streams that
match
XX??.
If an
application.clearStreams method is invoked on a stream that is currently recording, the
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,
length. Each element in the object is a reference to a Client object
instance, and you can use the
length property to determine the number of users connected to the
application. You can use the array access operator (
[]) with the application.clients property
to access elements in the object.
The object used for the
clients property is not an array, but it acts the same except for one
difference: you cant 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 clients object:
for (var i = 0; i < application.clients.length; i++) {
// insert code here
}
Zobrazit stránku 312
1 2 ... 308 309 310 311 312 313 314 315 316 317 318 ... 368 369

Komentáře k této Příručce

Žádné komentáře