Macromedia flash media server 2-server-side actionscript language reference Manual De Usuario

Descargar
Página de 74
70
Server Management ActionScript Language Reference
Example
The following example starts a virtual host named 
diamond.world.com
 on the currently 
connected adaptor and then starts a virtual host named 
diamond.world.com
 on the 
gem
 
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
stopServer()
Availability
Flash Player 6.
Flash Communication Server MX 1.0.
Usage
stopServer(stop_type)
Parameters
stop_type
  String; possible values are 
normal
 or 
abort
.
If you use the value 
normal
, the server shuts down, allowing running applications to end 
normally.
If you use the value 
abort
, the server immediately shuts down and running applications will 
not be allowed to stop normally.
Use the value 
abort
 only in an emergency or if specifying 
normal
 does not work.
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.