
7
SERVER-SIDE ACTIONSCRIPT LANGUAGE REFERENCE FOR ADOBE MEDIA SERVER 5.0.1
Server-Side ActionScript Language Reference
Last updated 7/2/2013
Use the Application object to accept and reject client connection attempts, to register and unregister classes and
proxies, and to manage the life cycle of an application. The Application object has callback functions that are invoked
when an application starts and stops and when a client connects and disconnects.
Availability
Flash Communication Server 1
Property summary
Method summary
Property Description
application.allowDebug A boolean value that lets administrators access an application with the Administration API
approveDebugSession() method (true) or not (false).
application.clients Read-only; an Array object containing a list of all the clients connected to an application.
application.config Provides access to properties of the ApplicationObject element in the Application.xml
configuration file.
application.hostname Read-only; the host name of the server for default virtual hosts; the virtual host name for all other
virtual hosts.
application.name Read-only; the name of the application instance.
application.server Read-only; the platform and version of the server.
Method Description
application.acceptConnection() Accepts a connection call from a client to the server.
application.broadcastMsg() Broadcasts a message to all clients connected to an application instance.
application.clearSharedObjects() Deletes persistent shared objects files (FSO files) specified by the soPath parameter and
clears all properties from active shared objects (persistent and nonpersistent).
application.clearStreams() Clears recorded streams files associated with an application instance.
application.denyPeerLookup() Specifies to the server that a peer lookup request has been denied.
application.disconnect() Terminates a client connection to the application.
application.gc() Invokes the garbage collector to reclaim any unused resources for this application instance.
application.getStats() Returns statistics about an application.
application.redirectConnection() Rejects a connection and provides a redirect URL.
application.registerClass() Registers a constructor function that is used when deserializing an object of a certain class
type.
application.registerProxy() Maps a method call to another function.
application.rejectConnection() Rejects the connection call from a client to the server.
application.sendPeerRedirect() When a peer issues a lookup for a target peer, this method sends the peer an Array of
addresses for the target peer.
application.shutdown() Unloads the application instance.
Commentaires sur ces manuels