setConfig2()
65
val = "true";
nc.call("setConfig", new onSetConfig(), key, val);
// Change key in Application.xml for a different virtual host.
// The adaptor and virtual host names and the second parameter are
necessary.
key = "Adaptor:_defaultRoot_/VirtualHost:www.redpin.com/
Application:ChatApp/ ¬ RecordAppLog";
val = "true";
nc.call("setConfig', new onSetConfig(), key, val, "/");
See also
getAdminContext()
,
getConfig()
setConfig2()
Availability
■
Flash Player 6.
■
Flash Media Server 2.
Usage
setConfig2(
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 six server configuration files: Server.xml, Users.xml, Logger.xml,
Adaptor.xml, Vhost.xml, and Application.xml. Depending on your permissions, you can
change the values of configuration keys for all these files:
key_value
String; the value to set for the specified configuration key. If the value specified
is a simple string, it is set as the tag data for the specified tag. If the value is valid XML, for
example, <foo>bar</foo>, the XML is added as a child tag to the specified tag. If the value is
an empty string, the specified tag is removed.