Macromedia flash media server 2-server-side actionscript language reference Manual De Usuario
18
Server Management ActionScript Language Reference
Example
/* Change password for server administrator named "ASilva" to "cbx5978y" */
nc.call("changePswd", new onChangePswd(), "ASilva", "cbx5978y", "server");
nc.call("changePswd", new onChangePswd(), "ASilva", "cbx5978y", "server");
/* Change password for virtual host administrator named "JLee" to "kbat3786"
*/
nc.call("changePswd", new onChangePswd(), "JLee", "kbat3786");
/* Change password for virtual host administrator "JLee" to "kbat3786" on */
/* virtual host "tree.oak.com" */
nc.call("changePswd", new onChangePswd(), "JLee", "kbat3786",
/* virtual host "tree.oak.com" */
nc.call("changePswd", new onChangePswd(), "JLee", "kbat3786",
"_defaultRoot_/¬ tree.oak.com");
gc()
Availability
■
Flash Player 6.
■
Flash Communication Server MX 1.0.
Usage
gc()
Parameters
None.
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.CommandFailed
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
Forces collection and elimination of all server resources that are no longer used, such as closed
streams, instances of applications, and nonpersistent shared objects. This operation is
performed within about one second of the call.
streams, instances of applications, and nonpersistent shared objects. This operation is
performed within about one second of the call.
You must be a server administrator to perform this operation.