Every instance of a Flash Media Server application has an Application object, which is a single instance of the Application class. You don't need to use a constructor function to create an Application object; it is created automatically when an application is instantiated by the server.
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.
For more information about the life cycle of an application, see Adobe Flash Media Server Developer Guide.
Flash Communication Server 1
|
Property |
Description |
|---|---|
|
A boolean value that lets administrators access an application with the Administration API approveDebugSession() method (true) or not (false). |
|
|
Read-only; an Array object containing a list of all the clients connected to an application. |
|
|
Provides access to properties of the ApplicationObject element in the Application.xml configuration file. |
|
|
Read-only; the host name of the server for default virtual hosts; the virtual host name for all other virtual hosts. |
|
|
Read-only; the name of the application instance. |
|
|
Read-only; the platform and version of the server. |
|
Method |
Description |
|---|---|
|
Accepts a connection call from a client to the server. |
|
|
Broadcasts a message to all clients connected to an application instance. |
|
|
Deletes persistent shared objects files (FSO files) specified by the soPath parameter and clears all properties from active shared objects (persistent and nonpersistent). |
|
|
Clears recorded streams files associated with an application instance. |
|
|
Terminates a client connection to the application. |
|
|
Invokes the garbage collector to reclaim any unused resources for this application instance. |
|
|
Returns statistics about an application. |
|
|
Rejects a connection and provides a redirect URL. |
|
|
Registers a constructor function that is used when deserializing an object of a certain class type. |
|
|
Maps a method call to another function. |
|
|
Rejects the connection call from a client to the server. |
|
|
Unloads the application instance. |
|
Event handler |
Description |
|---|---|
|
Invoked when the server loads an application instance. |
|
|
Invoked when the server is about to unload an application instance. |
|
|
Invoked when NetConnection.connect() is called from the client. |
|
|
Invoked when a client successfully connects to an application; for use with version 2 components only. |
|
|
Invoked when a connection is rejected in an application that contains components. |
|
|
Invoked when a client disconnects from an application. |
|
|
Invoked when a client publishes a stream to an application. |
|
|
Invoked when the server encounters an error while processing a message that was targeted at this application instance. |
|
|
Invoked when a client stops publishing a stream to an application. |