MACROMEDIA FLASH MEDIA SERVER 2-SERVER MANAGEMENT ACTIONSCRIPT LANGUAGE Bedienungsanleitung Seite 13

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 155
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 12
ADOBE FLASH MEDIA INTERACTIVE SERVER
Server-Side ActionScript Language Reference
10
Availability
Flash Communication Server 1
Parameters
soPath A string indicating the Uniform Resource Identifier (URI) of a shared object.
The
soPath parameter specifies the name of a shared object, which can include a slash (/) as a delimiter between
directories in the path. The last element in the path can contain wildcard patterns (for example, a question mark [?]
and an asterisk [*]) or a shared object name. The
application.clearSharedObjects() method traverses the
shared object hierarchy along the specified path and clears all the shared objects. Specifying a slash (/) clears all the
shared objects that are associated with an application instance.
If
soPath 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.
The following values are possible for the
soPath parameter:
/ clears all local and persistent shared objects associated with the instance.
/foo/bar clears the shared object /foo/bar; if bar is a directory name, no shared objects are deleted.
/foo/bar/* clears all shared objects stored under the instance directory /foo/bar. If no persistent shared objects
are in use within this namespace, the bar directory is also deleted.
/foo/bar/XX?? clears all shared objects that begin with XX, followed by any two characters. If a directory name
matches this specification, all the shared objects within this directory are cleared.
Returns
A boolean value of
true if the shared object at the specified path was deleted; otherwise, false. If wildcard
characters are used to delete multiple files, the method returns
true only if all the shared objects that match the
wildcard pattern were successfully deleted; otherwise, it returns
false.
Example
The following example clears all the shared objects for an instance:
function onApplicationStop(){
application.clearSharedObjects("/");
}
application.clearStreams()
application.clearStreams(streamPath)
Clears recorded streams files associated with an 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 appli-
cation instance, or just those streams whose names match a specified wildcard pattern.
If the
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.
A call to
application.clearStreams() invokes the Stream.onStatus() handler and passes it an information
object that contains information about the success or failure of the call.
Note: You can also use the Administration API
removeApp() method to delete all the resources for a single application
instance.
Seitenansicht 12
1 2 ... 8 9 10 11 12 13 14 15 16 17 18 ... 154 155

Kommentare zu diesen Handbüchern

Keine Kommentare