72
Server Management ActionScript Language Reference
Example
The following example stops the virtual host
tree.oak.com
and then stops the virtual host
tree.oak.com
on the default adaptor.
/* Stop the vhost named tree.oak.com */
nc.call("stopVHost", new onStopVHost(), "tree.oak.com");
/* Stop the vhost named tree.oak.com on the default adaptor */
nc.call("stopVHost", new onStopVHost(), "_defaultRoot_/tree.oak.com");
See also
restartVHost()
,
startVHost()
unloadApp()
Availability
■
Flash Player 6.
■
Flash Communication Server MX 1.0.
Usage
unloadApp(
app_instance
)
Parameters
app_instance
A string that contains the name of the application or instance of the
application, in the form
application_name
[/
instance_name
]
.
Returns
If the call succeeds, the server sends a reply information object with a
level
property of
status
and a
code
property of
NetConnection.Call.Success
.
If the call fails, the server sends a reply information object with a
level
property of
error
and a
code
property of
NetConnection.Admin.Command.Failed
or a more specific value, if
available. Some objects might also have a
description
property that contains a string
describing the cause of the failure.