MACROMEDIA FLASH MEDIA SERVER 2-SERVER-SIDE ACTIONSCRIPT LANGUAGE Reference page 28

Server-side actionscript language reference
Table of Contents

Advertisement

Returns
Nothing.
Description
Event handler; invoked when the server first loads the application instance. You use this
handler to initialize an application state. You can use
and
application.onAppStart
to initialize and clean up global variables in an application because
application.onAppStop
each of these events is invoked only once during the lifetime of an application instance.
Example
The following example defines an anonymous function for the
application.onAppStart
event handler that sends a
message:
trace
application.onAppStart = function () {
trace ("onAppStart called");
};
Application.onAppStop
Availability
Flash Communication Server MX 1.0.
Usage
application.onAppStop = function (info){}
Parameters
An information object that explains why the application stopped running. See
info
"Server-Side Information Objects" on page
229.
Returns
The value returned by the function you define, if any, or
. To refuse to unload the
null
application, return
. To unload the application, return
or any non-
value.
false
true
false
Description
Event handler; invoked when the application is about to be unloaded by the server. You can
define a function that executes when the event handler is invoked. If the function returns
, the application unloads. If the function returns
, the application doesn't unload.
true
false
If you don't define a function for this event handler, or if the return value is not a Boolean
value, the application is unloaded when the event is invoked.
28
Server-Side ActionScript Language Reference

Advertisement

Table of Contents
loading
Need help?

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?

This manual is also suitable for:

Flash media server 2

Table of Contents