User Guide
62 Server Management ActionScript Language Reference
setConfig()
Availability
■ Flash Player 6.
■ Flash Communication Server MX 1.0.
Usage
setConfig(key, key_value, [,scope])
Parameters
key A string that specifies the configuration key for which you want to change the value.
A key is specified as a list of subkeys delimited by slashes (
/). The first subkey specifies the
XML configuration file that contains the desired configuration key. Subsequent subkeys
correspond to tags that are relative to that XML configuration file; the hierarchy and names of
the subkeys match the tags in the XML file.
Flash Media Server has four server configuration files: Server.xml, Adaptor.xml, Vhost.xml,
and Application.xml. Depending on your permissions, you can change the values of
configuration keys for all these files:
■ For the Server.xml file, specify Admin or Server as the first subkey. All subsequent keys
correspond to tags that are relative to the
<Admin> or <Server> tag in the Server.xml file.
You must be a server administrator to set configuration keys in the
<Server> tag.
Virtual host administrators can set configuration keys for their own virtual host only.
They might not be able to set certain kinds of sensitive information; for example, they can
set their own password, but they cannot set other virtual host administrators’ passwords or
permission settings.
■ For the Adaptor.xml file, specify as the first subkey Adaptor:adaptor_name, where
adaptor_name is the name of the adaptor. All subsequent keys correspond to tags relative
to the
<Adaptor> tag in the Adaptor.xml file.
■ For the Vhost.xml file, specify as the first subkey Adaptor:adaptor_name/
VirtualHost:vhost_name
, where vhost_name is the name of the virtual host. All
subsequent keys correspond to tags relative to the
<VirtualHost> tag in the Vhost.xml
file.