Macromedia flash media server 2-server-side actionscript language reference Manual De Usuario
58
Server Management ActionScript Language Reference
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.
If the specified administrator does not exist, the call fails.
Description
Removes an administrator from the system. Depending on the parameters you specify, you
can remove server administrators or virtual host administrators.
can remove server administrators or virtual host administrators.
You must be a server administrator to remove an administrator from the system.
Example
The following examples show the
removeAdmin
method:
/* Remove a server administrator named "DYoung" */
nc.call("removeAdmin", new onRemoveAdmin(), "DYoung", "server");
nc.call("removeAdmin", new onRemoveAdmin(), "DYoung", "server");
/* Remove a virtual host administrator named "LPark" */
nc.call("removeAdmin", new onRemoveAdmin(), "LPark");
nc.call("removeAdmin", new onRemoveAdmin(), "LPark");
/* Remove a virtual host administrator "JGarcia" from vhost tree.oak.com */
nc.call("removeAdmin", new onRemoveAdmin(), "JGarcia", "_defaultRoot_/ ¬
tree.oak.com");
nc.call("removeAdmin", new onRemoveAdmin(), "JGarcia", "_defaultRoot_/ ¬
tree.oak.com");
See also
removeApp()
Availability
■
Flash Player 6.
■
Flash Communication Server MX 1.0.
Usage
removeApp(app_name)