The Flash Media Server application passes an information object to the
application.onAppStop
information object to decide what to do in the function you define. You could also define the
application.onAppStop
If you use the management console or the Server Management ActionScript API to unload a
Flash Media Server application,
cannot use the
application.onAppStop
is exiting.
Example
The following example defines a function to perform the shutdown operations on the
application. The function is then assigned to the event handler so that it executes when the
handler is invoked.
function onMyApplicationEnd(info){
// Do all the application-specific shutdown logic here.
}
application.onAppStop = onMyApplicationEnd;
Application.onConnect
Availability
Flash Communication Server MX 1.0.
Usage
application.onConnect = function (clientObj [, p1, ..., pN]){}
Parameters
A Client object. The client connecting to the application.
clientObj
Optional parameters passed to the
p1 ..., pN
parameters are passed from the client-side
connects to the application.
event. You can use server-side ActionScript to look at this
event to notify users before shutdown.
application.onAppStop
event, for example, to tell users that the application
NetConnection.connect
is not invoked. Therefore you
application.onConnect
handler when a client
handler. These
Application class
29
Need help?
Do you have a question about the FLASH MEDIA SERVER 2-SERVER-SIDE ACTIONSCRIPT LANGUAGE and is the answer not in the manual?