RTMP/E
getActiveInstances(processID:Number) : Object
HTTP
http://www.example.com:1111/admin/getActiveInstances?auser=username&apswd=password&pid|processID=number
Returns an array of strings that contains the names of all running application instances on the AMSCore process specified by the processID parameter.
Availability
Flash Communication Server 1.0.
Parameters
pid|processID
A number indicating the process identifier of an AMSCore process.
auser
A String indicating the user name of the administrator.
apswd
A String indicating the password of the administrator.
Returns
RTMP/E
If the call succeeds, the server sends a reply information object with a level property of status, a code property of NetConnection.Call.Success, and a data property that is an array of strings containing the names of all running instances of an application on the server or on a specified process.
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.
HTTP
A successful call returns XML with the following structure:
<result> <level></level> <code></code> <timestamp></timestamp> <data></data> </result>An unsuccessful call returns XML with the following structure:
<result> <level></level> <code></code> <description></description> <timestamp></timestamp> </result>The XML elements contain the same information as the Object properties returned in an RTMP/E call.
Note: The timestamp response over HTTP is formatted differently on Windows (9/23/2007 6:16:40 PM) and Linux (Sun 23 Sep 2007 06:16:40 PM IST).
Example
nc_admin = new NetConnection(); nc_admin.connect("rtmp://localhost:1111/admin", "JLee", "x52z49ab"); nc_admin.call("getActiveInstances", new Result());