68
Server Management ActionScript Language Reference
// add child tag to a tag in default Application.xml
key = "Process";
val = "<Scope>inst</Scope>";
scope = "Adaptor:_defaultRoot_/VHost:_defaultVHost_/App";
tSocket.call("setConfig2", new onSetConfig(), key, val, scope);
// delete tag in default Application.xml
key = "Process";
val = "";
scope = "Adaptor:_defaultRoot_/VHost:_defaultVHost_/App";
tSocket.call("setConfig2", new onSetConfig(), key, val, scope);
See also
getAdminContext()
,
getConfig2()
startServer()
Availability
■
Flash Player 6.
■
Flash Communication Server MX 1.0.
Usage
startServer([
start_type
])
Parameters
start_type
Optional; string that specifies how you want to restart the server.
If the server is not running and you want to start it, omit this parameter. If the server is
already running and you want to stop it and then restart it, you must specify
restart
for this
parameter. (If the server is running and you omit this parameter, this command does
nothing.)
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.