Macromedia flash media server 2-server-side actionscript language reference Benutzerhandbuch

Seite von 74
startVHost()
69
Description
Starts the Flash Media Server service or stops it and restarts it.
You must be a server administrator to perform this operation.
See also
startVHost()
Availability
Flash Player 6.
Flash Communication Server MX 1.0.
Usage
startVHost(vhost_name)
Parameters
vhost_name
  A string that contains the name of the virtual host you want to start or the new 
virtual host you want to enable, in the form 
[adaptor
/
]vhost
If you are enabling a new virtual host on the adaptor to which you’re connected, omit 
adaptor/
.
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.
Description
Starts a stopped virtual host or enables a new virtual host.
This command lets you enable a new virtual host at runtime without restarting the server. 
The new virtual host directory and configuration files must already be present in the server’s 
conf directory; the 
startVHost
 command does not create or copy any directories or 
configuration files. For information on adding virtual hosts, see Managing Flash Media Server.
You must be a server administrator to use the 
startVHost()
 command.