16
Server-Side ActionScript Language Reference
Besides the built-in properties of the Application class, you can create other properties of any
legal ActionScript type, including references to other ActionScript objects. For example, the
following code creates a new property of type
Array
and a new property of type
Number
:
application.myarray = new Array();
application.num_requests = 1;
Method summary for the Application class
Property summary for the Application class
Method Description
Application.acceptConnection()
Accepts a connection to an application from a client.
Application.broadcastMsg()
Broadcasts a message to all connected clients.
Application.clearSharedObjects()
Clears all shared objects associated with the current
instance.
Application.clearStreams()
Clears all stream objects associated with the current
instance.
Application.disconnect()
Disconnects a client from the server.
Application.gc()
Invokes the garbage collector to reclaim any unused
resources for this application instance.
Application.getStats()
Returns network statistics for the application instance.
Application.registerClass()
Registers or unregisters a constructor that is called
during object deserialization.
Application.registerProxy()
Registers a NetConnection or Client object to fulfill a
method request.
Application.rejectConnection()
Rejects a connection to an application.
Application.shutdown()
Unloads the application instance.
Property
Description
Application.allowDebug
A Boolean value that lets administrators use the
approveDebugSession()
Server Management
ActionScript method to access your Flash Media Server
application
(
true
) or not (
false
).
Application.clients
Read-only; an object containing a list of all clients
currently connected to the application.