Example
The following example starts a virtual host named
connected adaptor and then starts a virtual host named
adaptor.
/* Starts a virtual host named diamond.world.com */
nc.call("startVHost", new onStartVHost(), "diamond.world.com");
/* Starts a virtual host named diamond.world.com on the adaptor, gem */
nc.call("startVHost", new onStartVHost(), "gem/diamond.world.com");
See also
restartVHost()
stopServer()
Availability
Flash Player 6.
Flash Communication Server MX 1.0.
Usage
stopServer(stop_type)
Parameters
String; possible values are
stop_type
If you use the value
normal
normally.
If you use the value
abort
not be allowed to stop normally.
Use the value
abort
Returns
If the call succeeds, the server sends a reply information object with a
and a
property of
status
code
If the call fails, the server sends a reply information object with a
and a
property of
code
available. Some objects might also have a
describing the cause of the failure.
70
Server Management ActionScript Language Reference
normal
, the server shuts down, allowing running applications to end
, the server immediately shuts down and running applications will
only in an emergency or if specifying
NetConnection.Call.Success
NetConnection.Admin.Command.Failed
description
diamond.world.com
diamond.world.com
or
.
abort
does not work.
normal
.
level
or a more specific value, if
property that contains a string
on the currently
on the
gem
property of
level
property of
error
Need help?
Do you have a question about the FLASH MEDIA SERVER 2-SERVER MANAGEMENT ACTIONSCRIPT LANGUAGE and is the answer not in the manual?