![MACROMEDIA FLASH MEDIA SERVER 2-SERVER MANAGEMENT ACTIONSCRIPT... Reference Download Page 27](http://html1.mh-extra.com/html/macromedia/flash-media-server-2-server-management-actionscript/flash-media-server-2-server-management-actionscript_reference_3373548027.webp)
getConfig2()
27
// Find key in Vhost.xml.
key = "Adaptor:_defaultRoot_/VirtualHost:_defaultVhost_/RecordAccessLog";
nc.call("getConfig", new onGetConfig(), key, "/");
// Find key in Application.xml for an application on the virtual host you
// connected to when you logged on to the administration server.
// Note that the previous subkeys and the second parameter "/" are not
necessary.
key = "Application:FinanceApp/RecordAppLog";
nc.call("getConfig", new onGetConfig(), key);
// Find key in Application.xml for an application on a different virtual
host.
key = "Adaptor:_defaultRoot_/VirtualHost:www.redpin.com/
Application:ChatApp/ ¬ RecordAppLog";
nc.call("getConfig', new onGetConfig(), key, "/");
See also
getAdminContext()
,
setConfig()
getConfig2()
Availability
■
Flash Player 6.
■
Flash Media Server 2.
Usage
getConfig2(
key
,
scope
)
Parameters
key
A string that specifies the configuration key for which information is retrieved.
A key is specified as a list of subkeys that are 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 the XML configuration file; the hierarchy and names of
the subkeys match the tags in the XML file. If multiple tags exist with the same name and
same parent, they can be distinguished by specifying a "name" attribute and appending the
"name" attribute to the tag name separated by a colon in the
key
parameter. If the specified
tag is a leaf node, then its tag data is returned. If the specified tag is not a leaf node, the whole
tag is returned as an XML string.
scope
String; this parameter specifies which configuration file to search for the
configuration tag specified in the
key
parameter.